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: 6578189
Votes 0
Synopsis Regression:TitleBorder insets have changed and it causes bcoz of 6434444.
Category java:classes_swing
Reported Against b01
Release Fixed 7(b20), 6u4(b02) (Bug ID:2150944)
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs 6434444
Submit Date 09-JUL-2007
Description
Bug Info:
=========
Till 6u2 b05,if you set the TitleBorder to a component,it aligned center with left and right margins inside the TitleBorder.

But from 6u3 b01 onwards,If you set the TitleBorder to a component,its not aligning to center and left and right margins are missing.It touches the edges of the TitleBorder and also looks ugly.

The component default height is also varying for some components.I am suspecting,this issue causes because of the change in xpstyle.java file for the fix 6434444.

Its happening on windows xp flavors only.

JDK Info:
=========
java version "1.6.0_03-ea"
Java(TM) SE Runtime Environment (build 1.6.0_03-ea-b01)
Java HotSpot(TM) Client VM (build 1.6.0_03-ea-b01, mixed mode, sharing)


Please find the attached images for verifying the issue.

In the image the first one captured with 6u2 b05 and second one captured with 6u3 b01.
Posted Date : 2007-07-10 13:18:58.0
Work Around
N/A
Evaluation
Before the fix for 6434444 the value of Prop.SIZINGMARGINS was used to get the content margins which was wrong. After the fix the value of Prop.CONTENTMARGINS is used which is not quite correct either. The right way to get content margins is to use uxtheme's GetThemeBackgroundContentRect ( http://msdn2.microsoft.com/en-us/library/ms649925.aspx ). I suggest to use this method in XPStyle.getContentMargin
Posted Date : 2007-07-11 19:01:45.0
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang