JDK-6631684 : Nimbus L&F:Frame button and title are misplaced on JInternalFrame
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6u10
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2007-11-19
  • Updated: 2011-03-05
  • Resolved: 2008-01-08
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6u10 b10Fixed
Related Reports
Duplicate :  
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 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
14-12-2007

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

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