JDK-8090347 : Method to get the content scale factor (HiDPI)
  • Type: Enhancement
  • Component: javafx
  • Sub-Component: graphics
  • Priority: P4
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2013-09-27
  • Updated: 2016-10-19
  • Resolved: 2016-10-14
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
Relates :  
Relates :  
Description
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?

Comments
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.
14-10-2016