How to disable scaling the UI on Windows, for Java 9 applications?

后端 未结 2 1409
青春惊慌失措
青春惊慌失措 2020-12-31 19:34

There was no proper HiDPI support in Java 8.

In Java 9, JavaFx applications correctly scale to the monitor they are in. For example

2条回答
  •  迷失自我
    2020-12-31 20:08

    if needed, found another couple of helpful JVM parameters from that website :

    -Dsun.java2d.uiScale.enabled=false
    -Dsun.java2d.win.uiScaleX=1.0 -Dsun.java2d.win.uiScaleY=1.0
    

提交回复
热议问题