Skip to main content

High DPI

1 reply [Last post]
Joined: 2004-01-14

According to this on Vista and above the high DPI aware flag is set if the process is started using java.exe. However in a sample app in which I output the value of the property it is null.

String value = System.getProperty("sun.java2d.dpiaware");

It will only return true/false if I explicitly set the value on the command line. Is this the correct behavior? My expectation is that the value would be automatically set to true on Vista and above when launched from java.exe.

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
Joined: 2003-12-31

As the bug evaluation states, by default on Vista java process is made high-DPI aware (except in certain cases). The flag is "write only", to change the default behavior, it's not for determining if the java process is DPI-aware or not.