JDK-8090347 : Method to get the content scale factor (HiDPI)
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.
With Apple JDK6 we can call the scale factor like this: toolkit.getDesktopProperty("apple.awt.contentScaleFactor���);
On JDK7 and 8 it's not possible to get the scale factor. Could we please integrate such a possibility?
This information is now available in JDK 9 for both AWT and JavaFX.
The information was made available in the AWT under JDK-8069361 using GraphicsConfiguration.getDefaultTransform() (which was returning IDENTITY in JDK 8, but now returns the scale factors in JDK9).
The information was made available in JavaFX using properties on javafx.stage.Window and javafx.stage.Screen under JDK-8091832.