<AWT Dev> [10] JDK-8189257: Enabling Translucent Frame with setBackground disables HiDPI

Shashidhara Veerabhadraiah shashidhara.veerabhadraiah at oracle.com
Fri Oct 27 12:49:22 UTC 2017


Hi All, Please review a fix for the below bug:

 

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

 

Webrev: http://cr.openjdk.java.net/~sveerabhadra/8189257/webrev.00/

 

Summary: With setBackground on for a window and system DPI != 100% causes HiDPI disabled hence producing a window of size equivalent to 100% DPI though it is not the case. Fixes has been done to update the window size and buffered image size increase\decrease proportionately per the system DPI. Below are the results. Now the window size dynamically syncs with system DPI change. Please note the font size has not been changed proportionately and am looking to find a solution in further review passes. 

 



 

Thanks and regards,
Shashi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20171027/437617ad/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image002.jpg
Type: image/jpeg
Size: 9143 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/awt-dev/attachments/20171027/437617ad/image002.jpg>


More information about the awt-dev mailing list