<Swing Dev> Review request for JDK-8079253 Test javax/swing/SwingUtilities/TestBadBreak/TestBadBreak.java fails

Rajeev Chamyal rajeev.chamyal at oracle.com
Fri Nov 6 09:38:33 UTC 2015


Hello All,

 

Please review the following fix for Jdk9:
 
Bug: https://bugs.openjdk.java.net/browse/JDK-8079253 

Webrev: http://cr.openjdk.java.net/~rchamyal/8079253/webrev.00/ 

Issue: The test case shortens two text labels and writes the resulting same strings to buffered images.

On Ubuntu linux the image pixels are not matching.

 
Cause: The frame size in Ubuntu is coming different every time which is resulting in different size images and resulting into issue. 
Bug HYPERLINK "https://bugs.openjdk.java.net/browse/JDK-8073710"JDK-8073710 is already reported for this issue.
Also we need set the opaque property on label component which makes sure that all of the bits contained within component's rectangular bounds are painted.
 
Fix: Setting the default look and feel decoration for frame size issue and making label opaque.
 
Regards,
Rajeev Chamyal

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20151106/d35fd99b/attachment.html>


More information about the swing-dev mailing list