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

Support for Ubuntu and other Desktop Linux distributions
Post Reply
Theron
Posts: 5
Joined: 10 Apr 2023, 14:53

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

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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
:idea: Please read the FAQ and How to Request Help.
Theron
Posts: 5
Joined: 10 Apr 2023, 14:53

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

Post 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
User avatar
rednoah
The Source
Posts: 22923
Joined: 16 Nov 2011, 08:59
Location: Taipei
Contact:

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

Post 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"
:idea: Please read the FAQ and How to Request Help.
Post Reply