There was no proper HiDPI support in Java 8.
In Java 9, JavaFx applications correctly scale to the monitor they are in. For example, if my monitor is set to scale at 150%, the Java application is scaled to 150%.
See: http://openjdk.java.net/jeps/263
However, for testing purposes, I need to be able to disable scaling by using java.exe flags, in Windows 10. How can I achieve this?
Also, maybe I can disable (and re-enable) this programmatically within the application itself?