United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6631684 Nimbus L&F:Frame button and title are misplaced on JInternalFrame
JDK-6631684 : Nimbus L&F:Frame button and title are misplaced on JInternalFrame

Details
Type:
Bug
Submit Date:
2007-11-19
Status:
Resolved
Updated Date:
2011-03-05
Project Name:
JDK
Resolved Date:
2008-01-08
Component:
client-libs
OS:
windows_xp
Sub-Component:
javax.swing
CPU:
x86
Priority:
P3
Resolution:
Fixed
Affected Versions:
6u10
Fixed Versions:
6u10 (b10)

Related Reports
Duplicate:

Sub Tasks

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.

                                    

Comments
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 ?
                                     
2007-11-20
EVALUATION

It was confirmed that it is about Nimbus Laf
                                     
2007-11-20
EVALUATION

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
                                     
2007-12-14



Hardware and Software, Engineered to Work Together