Java disable dpi-aware not working

前端 未结 3 2101
耶瑟儿~
耶瑟儿~ 2020-12-04 14:51

I\'m trying to run a Java application with -Dsun.java2d.dpiaware=false argument but nothing happens.

I expect to have a blurred UI but with normal size

3条回答
  •  醉酒成梦
    2020-12-04 15:22

    you can simply use :

    System.setProperty("prism.allowhidpi", "false");
    

    It is important that this is at the very start of your application before your main arguments get initialized, i.e. before Application.launch() or at the begining of your main() function

提交回复
热议问题