JDK-8041917 : unexcepted behavior of LineBorder while using Boolean variable true
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7,8,9
  • Priority: P3
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_8
  • Submitted: 2013-05-22
  • Updated: 2014-09-30
  • Resolved: 2014-04-30
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 8 JDK 9
8u20Fixed 9 b15Fixed
Related Reports
Relates :  
Relates :  
Description
FULL PRODUCT VERSION :
1.7

ADDITIONAL OS VERSION INFORMATION :
windows 8 pro version 6.2 (9200)

EXTRA RELEVANT SYSTEM CONFIGURATION :
the border ->setBorder( new LineBoder(Color.white,10,true)); is not working properly in java 7 update 21 while it will work excellent in java 6 version so u must improve it

A DESCRIPTION OF THE PROBLEM :
just use the setBorder( new LineBoder(Color.white,10,true)); line on any JLabel , JPanel etc. & it behave differently compare to previous release

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
just use the setBorder( new LineBoder(Color.white,10,true)); line on any JLabel , JPanel etc. & it behave differently compare to previous release

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
when we true the boolean variable curve are on the edges & there is 2 line u compile the same program in java 6 & then in java 7 u find that in java6 the apperance is very atttractive as compare to java 7 that all i want
ACTUAL -
just use the setBorder( new LineBoder(Color.white,10,true)); line on any JLabel , JPanel etc. & it behave differently compare to previous release

ERROR MESSAGES/STACK TRACES THAT OCCUR :
just use the setBorder( new LineBoder(Color.white,10,true)); line on any JLabel , JPanel etc. & it behave differently compare to previous release

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
just use the setBorder( new LineBoder(Color.white,10,true)); line on any JLabel , JPanel etc. & it behave differently compare to previous release
---------- END SOURCE ----------

CUSTOMER SUBMITTED WORKAROUND :
no i am a BTech student whose had to submit his project in college i notice it when i install the latest version of java so i don't know the method as i am a beginner in java who simply use gridbaglayout and made standalone desktop application. to submit in his college and want good marks in Last semester :) that's all i am :)

Thank u for ur suppot.

SUPPORT :
YES
Comments
http://cr.openjdk.java.net/~malenkov/8041917.9.0/
29-04-2014

Seems it is a regression after the 4252164 fix.
28-04-2014

It could have been a bug in Java 6 which was fixed in 7. At the same time thick rounded border paints over text in JLabel, it looks like a bug. See the attached LineBorderTest.png: Java 7-9 is on the left, Java 6 is on the right.
25-04-2014