Login  Register

Re: 4k resolution - not DPI aware

Posted by cadet1620 on Oct 09, 2018; 8:07pm
URL: http://nand2tetris-questions-and-answers-forum.52.s1.nabble.com/4k-resolution-not-DPI-aware-tp4030046p4032402.html

Copied from the Coursera forum:

Has anyone managed to get the Java application to launch with a decent resolution on Windows 10? It's nearly impossible to see on my screen.
______________________________

Windows 10 solution
(from https://superuser.com/questions/988379/how-do-i-run-java-apps-upscaled-on-a-high-dpi-display)

Just found an easy solution on my Windows 10 machine:

    Find javaw.exe you installed.
    Right click -> Properties
    Go to Compatibility tab
    Check Override high DPI scaling behavior.
    Choose System for Scaling performed by:
______________________________

Linux solution

The solution for Windows was editing the properties of javaw.exe, as described above, then restarting the application.

The solution for (Arch) Linux is editing the HardwareSimulator.sh script [and others] as described here:

https://wiki.archlinux.org/index.php/HiDPI#Java_applications

Change the run line:
java -Dsun.java2d.uiScale=2 -classpath ...