JDK-6395091 : WIn L&F: Buttons in JInternalFrame title bar are wrong shape on Vista
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_vista
  • CPU: generic
  • Submitted: 2006-03-07
  • Updated: 2010-05-09
  • Resolved: 2006-05-31
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
6 b86Fixed
Related Reports
Relates :  
Relates :  
Description
The close/minimize/maximize buttons on JInternalFrame should be rectangular when running on Windows Vista with the default Visual Style called Aero. They incorrectly appear square with Mustang b74.

Comments
EVALUATION While it would be great to have 6425049 [win.frame.captionButtonWidth desktop property is not updated on system preference change] fixed we can address this bug without it. If win.frame.captionButtonHeight returns the correct value (and we assume that it does) we can derive width from the height using the ratio from the uxtheme part. Please see attached frameicons.png
12-05-2006

EVALUATION This problem was introduced by the fix for 4866279 [JInternalFrame XP L&F title bar height not machine OS settings]. After that fix we use the same width for the buttons as height. We need to use the corrrect values for width instead. However there is a problem with it. 6425049 [win.frame.captionButtonWidth desktop property is not updated on system preference change] As soon as 6425049 is resolved we will start using win.frame.captionButtonWidth desktop property for with and this bug will be resolved
12-05-2006