Page 1 of 1

Everything in UI is too small - Manjaro 22.10 X11 nVidia (i.e. How do I force the Java Swing UI scale factor?)

Posted: 29 Apr 2023, 14:38
by Theron
Image


UI is fine on another PC with an identical install. The only difference is that the other machine is Intel iGPU on Wayland
Any easy way to fix this? Changing skins doesn't help. It just results in a bunch of overlapping elements with a mix of huge and tiny buttons and text.

Thanks

Re: Everything in UI is too small - Manjaro 22.10 X11 nVidia

Posted: 29 Apr 2023, 14:48
by rednoah
You may be able to force a specific scale factor if Java Swing doesn't inherit that from your Desktop Environment:
rednoah wrote: 30 Jun 2016, 08:36 Force UI scale factor: sun.java2d.uiScale = 1 | 2 | 4

Code: Select all

filebot -script fn:properties --def sun.java2d.uiScale=2

Re: Everything in UI is too small - Manjaro 22.10 X11 nVidia

Posted: 29 Apr 2023, 14:56
by Theron
rednoah wrote: 29 Apr 2023, 14:48 You may be able to force a specific scale factor if Java Swing doesn't inherit that from your Desktop Environment:
rednoah wrote: 30 Jun 2016, 08:36 Force UI scale factor: sun.java2d.uiScale = 1 | 2 | 4

Code: Select all

filebot -script fn:properties --def sun.java2d.uiScale=2
that worked perfectly, can i try to make it even bigger?
edit... 2.5 was perfect
thanks

Re: Everything in UI is too small - Manjaro 22.10 X11 nVidia

Posted: 30 Apr 2023, 02:18
by rednoah
If you have any other Java Swing applications, then you can use -Dsun.java2d.uiScale=2.5 for those applications as well:

Code: Select all

export _JAVA_OPTIONS="-Dsun.java2d.uiScale=2.5"