Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 6631684
Votes 1
Synopsis Nimbus L&F:Frame button and title are misplaced on JInternalFrame
Category java:classes_swing
Reported Against
Release Fixed 6u10(b10)
State 10-Fix Delivered, bug
Priority: 3-Medium
Related Bugs 6640346
Submit Date 19-NOV-2007
Description
The frame icon, the frame button and title are misplaced on JInternal Frame. It seems that the frame produces a wrong size for the title panel. Check attached screen shot image001.jpg.
Posted Date : 2007-11-19 17:49:58.0
Work Around
N/A
Evaluation
We need at least some information how to reproduce this problem,
runnable test would be the best or at least something

One more question: what LookAndFeel is used ?
Posted Date : 2007-11-20 15:23:01.0

It was confirmed that it is about Nimbus Laf
Posted Date : 2007-11-20 16:49:21.0

There are a couple issues here:

1) The icon for the menu button was being drawn in the backgound of the button not its icon so when a custom icon was used it was drawn inside the default icon not in stead of. I have moved where the icon graphics are drawn which fixes this.

2) If the custom icon is bigger than the default (>18x18px) then the header paints incorrectly. There is no simple way to fix this with the way the Synth Regions are setup and the way Nimbus design looks. There is a property to restrict the frame icon size, which is now restricted to 18x18px which should fix this in all common casses.

3) Notcied that the title text font should be bold to match Nimbus Spec. FIXED
Posted Date : 2007-12-14 01:24:57.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang