'Scaling JNLP Breaks on Resolution Change
We've been using a jnlp app with computers installed with Java 8. We are attempting to make the app appear as full screen, currently it only shows up in less than half of the screen.
Java 8 does not support this so we've updated to Java 9 and added the following properties to our main jsp file:
<property name="sun.java2d.win.uiScaleX" value="1.88"/>
<property name="sun.java2d.win.uiScaleY" value="1.4"/>
<property name="sun.java2d.dpiaware" value="true"/>
This works quite well in scaling the view, however issues start arising if the desktop resolution is affected in any way. For example, locking the screen and having the screen turn off, or manually changing the resolution or windows scaling, disconnecting\reconnecting an additional screen, or even unplugging the laptop power source will all cause dialogs and popups to only partially display and the top of the app to duplicate visually.
Before:
After:
Before:
After:
I've attempted to update the high DPI settings in java to no effect, both the Program DPI settings and override to no avail. I'm thinking there might need to be some sort of rewriting of the main Java Swing JPanel but I'm not sure.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|




