Duplicate :
|
FULL PRODUCT VERSION : java version "1.7.0-ea" Java(TM) SE Runtime Environment (build 1.7.0-ea-b135) Java HotSpot(TM) 64-Bit Server VM (build 21.0-b05, mixed mode) ADDITIONAL OS VERSION INFORMATION : Windows 7 64bit Home Premium A DESCRIPTION OF THE PROBLEM : When executing SwingSet2.jar, it shows odd behavior with Nimbus Look and Feel. It seems that the problem happens when it tries to set borders around components. I'm not sure whether the problem arises from jfc classes or SwingSet2 itself. STEPS TO FOLLOW TO REPRODUCE THE PROBLEM : 1. Launch SwingSet2 on JDK 7 ea 2. Change the Look and Feel to "Numbus Look & Feel" from the Menu bar. 3. Click the "Button Demo" button (2nd button from the left end on Toolbar) to show the Button Demo page. 4. Open any tab page, check "Show border" checkbox on the right(under "Display Option"). 5. The border around component becomes abnormally wide on each clicking checkbox. EXPECTED VERSUS ACTUAL BEHAVIOR : EXPECTED - The Border appear around component like other Look&Feels. ACTUAL - Something like the border (actually, it does not look like border) around component becomes abnormally wide on each clicking checkbox. REPRODUCIBILITY : This bug can be reproduced always. ---------- BEGIN SOURCE ---------- %JAVA_HOME%\demo\jfc\SwingSet2\SwingSet2.jar ---------- END SOURCE ----------