Mini Guide: Java DPI Awareness
JWrapper is set up to allow your Java app to be either DPI aware or unaware on Windows as you see fit, rather than forced by the JVM you happen to be using.
By default your app will be DPI unaware and will scale as if it is unable to handle high DPI on Windows. If you would like your app to be DPI aware you can make a simple change which will enable it via a JVM option.
The JVM option is:
-Dsun.java2d.dpiaware=true
which can be added to your JWrapper XML config file as follows:
<JvmOptions>
<JvmOption>-Dsun.java2d.dpiaware=true</JvmOption>
</JvmOptions>
By default your app will be DPI unaware and will scale as if it is unable to handle high DPI on Windows. If you would like your app to be DPI aware you can make a simple change which will enable it via a JVM option.
The JVM option is:
-Dsun.java2d.dpiaware=true
which can be added to your JWrapper XML config file as follows:
<JvmOptions>
<JvmOption>-Dsun.java2d.dpiaware=true</JvmOption>
</JvmOptions>