1

How i can disable scaling (Windows 10) for java program or process this in code to fix blur on my custom components?

I had tried Dsun.java2d.uiScale.enabled=false but it didn’t help.

enter image description here

enter image description here

enter image description here

is there any solution to this problem?

asked Mar 24, 2020 at 20:39

1 Answer 1

3

Depending on the Java version you are using, you may want to consider different solutions, especially if you'd like to solve it on your application's side.

In any case, and if your concern is just to disable the Windows 10 scaling, you can do so by changing your Java settings and specifying Windows compatibility settings to override DPI scaling, as Elderry mentions here: https://superuser.com/a/1207925 , and as I'm quoting:

  1. Find java.exe you installed.
  2. Right click -> Properties
  3. Go to Compatibility tab
  4. Check Override high DPI scaling behavior.
  5. Choose System for Scaling performed by:

You can refer to this link for additional answers which may resolve your problem: https://superuser.com/questions/988379/how-do-i-run-java-apps-upscaled-on-a-high-dpi-display

answered Mar 25, 2020 at 0:32
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

Draft saved
Draft discarded

Sign up or log in

Sign up using Google
Sign up using Email and Password

Post as a guest

Required, but never shown

Post as a guest

Required, but never shown

By clicking "Post Your Answer", you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.