<AWT Dev> Review Request: JDK-8144709 [hidpi] [TestBug] java/awt/GridLayout/ChangeGridSize/ChangeGridSize.java, java/awt/GridLayout/ComponentPreferredSize/ComponentPreferredSize.java are failing

Prem Balakrishnan prem.balakrishnan at oracle.com
Wed Jul 20 09:03:34 UTC 2016


Hi,

Please review fix for JDK9,

 

Bug: https://bugs.openjdk.java.net/browse/JDK-8144709 

 

Webrev: http://cr.openjdk.java.net/~pkbalakr/8144709/webrev.00/ 

 

 

Issue:

java/awt/GridLayout/ChangeGridSize/ChangeGridSize.java,

java/awt/GridLayout/ComponentPreferredSize/ComponentPreferredSize.java are failing

 

Cause:

This issue is reproducible only on windows 8 OS.

Component(frame) width is set to 200, 

where as the minimum width obtained using ::GetSystemMetrics(SM_CXMIN) for Windows 8 is 210 (with 150% scale), 

hence user set width is replaced by the minimum width.

Therefore the Button size obtained is 97X52 instead of 92X52. (i.e., each column is 5pixel more)

 

Fix: frame width increased from 200 to 300

 

Thanks,

Prem

 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20160720/1e41215d/attachment.html>


More information about the awt-dev mailing list