Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Magnification problems of Java Apps under Windows 10

I am using Windows 10 Pro 64bit.

My monitor (32inch) has a native resolution of 3820 * 2160 pixels.

As soon when I use Java based applications I have problems with the magnification of fonts, buttons, etc. Often they are too small.

I know I can change the overall scaling of all elements to more than 100%. But this leads to the fact that fonts etc. are blurred.

Do you have a solution for that?

like image 876
len Avatar asked Dec 22 '16 12:12

len


People also ask

Why are my apps so small Windows 10?

Select Display > Change the size of text, apps, and other items, and then adjust the slider for each monitor. Right-click the application, select Properties, select the Compatibility tab, and then select the Disable display scaling on high DPI settings check box.

Why is my Java window so small?

Solution. Go to Compatibility tab and put a check mark next to Disable Display scaling on high DPI settings. Re-launch Java Console and this should resolve the issue.


1 Answers

Most common solution (try google) is disable DPI awareness. You can do this by running your app with:

-Dsun.java2d.dpiaware=false

Note that, here is bug for Java 8 :( See this ticket.

like image 173
Hrabosch Avatar answered Oct 03 '22 00:10

Hrabosch