JDK-8157070 : [hidpi] Java render icons and graphics badly on Windows HiDPI displays
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8,9
  • Priority: P2
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows
  • Submitted: 2016-05-16
  • Updated: 2016-08-19
  • Resolved: 2016-08-19
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 9
9Resolved
Related Reports
Duplicate :  
Description
Mac (looks fine):
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)

Windows (looks bad):
java version "1.8.0_92"
Java(TM) SE Runtime Environment (build 1.8.0_92-b14)
Java HotSpot(TM) 64-Bit Server VM (build 25.92-b14, mixed mode)

Have not tested this problem on Java 6 and 7 as those didn't have any of full
HiDPI support anyway. Have tested it on earlier Java 8 revisions, same 
problem. It has ever looked good on Windows.

The Windows version is Windows 10 Home 64 bit.

To test this scaling problem, any Swing app should do, just run the 
dist/HiDPI-Test.jar file. On Mac with a Retina/HiDPI display it generates 
this properly scaled window (1964x346 pixels). The Swing components are 
properly scaled-up to compensate for the higher. check screenshot Mac 
scaling.png

Note. If you view this Mac screenshot on a Mac, ensure to zoom it to 1:1. By 
default, the viewer sets the zooming to 50%, and then you don't notice that
all components are properly scaled up to twice the ordinary size.


On Windows 10 with a HiDPI display, it generates this badly scaled window 
(784x96 pixels). check screenshot Windows scaling.png

As you can see, it's only the frame of the window that's correctly enlarged
to compensate for the HiDPI screen. The Swing components don't get properly
enlarged/scaled.

This problem is critical for Windows users that have a HiDPI screen. 
Operating the UI when text and  components are half the intended size is 
hard. Users on ordinary screens are naturally not affected at all.


Comments
The issue is fixed in JDK 9 as part of the fix JDK-8073320 Windows HiDPI Graphics support
19-08-2016

Still pending a fix for customer as high priority issue. Targeted to 9.
17-08-2016

This problem is critical for Windows users that have a HiDPI screen and the CAP member would like have the fix asap.
24-05-2016

Anton, can you please check, It seems it affects 9 as well, and most probably a duplicate of already reported issue targeted to 9
18-05-2016