JDK-6477409 : REGRESSION: buttons within a toolbar will get a ridiculously wide border
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0u8
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-10-02
  • Updated: 2010-04-26
  • Resolved: 2006-10-04
Related Reports
Duplicate :  
Description
J2SE Version (please include all output from java -version flag):
 java version "1.5.0_08"
 Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
 Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode)

Does this problem occur on J2SE 1.3, 1.4.x or 1.5?  Yes / No (pick one)
 No, it works fine with Mustang and 5.0u6 and 5.0u7.

Operating System Configuration Information (be specific):
 Win_XP with Windows look and feel.

Bug Description:
  If you have a toolbar with buttons, the buttons get a  ridiculously wide border 
  the first time they appear. This happens because in JDK 5.0 update 8, someone 
  modified the class WindowsButtonListener to make it listen to "ancestor" events 
  and reset the button border. The only workarond we found so far is to call 
  toolBar.updateUI() AFTER the toolbar becomes visible. However, this workaround 
  is unacceptable to us for internal reasons. Is there some other way we can work 
  around this problem and can you please fix it in the next release of JDK 5.0.

Steps to Reproduce (be specific):
  simply run the attached java program on Windows XP under JDK 5.0 update 8 and 
  JDK 5.0 update 6, and you will see the difference.

Comments
EVALUATION This bug has already been fixed in 5.0u9 by 6349010. I'm closing it out.
04-10-2006

EVALUATION I think this has been fixed for 5.0u9. ###@###.###, can you please double-check and if so close as a duplicate?
04-10-2006