Thanks, combination od Dsun.java2d.uiScale and Dflatlaf.uiScale works great!



On 3/1/25 9:29 PM, avaluedcusto...@freenet.de wrote:
Am 01.03.25 um 21:18 schrieb May Doušak:
I have a new laptop with HiDPI screen and can't find a way to make NB usable. I'm using Linux / KDE Plasma on Wayland and UI is set to 150% scaling, everything except Netbeans looks OK.

By default, netbeans is too small.
I tried adding -Dsun.java2d.uiScale to _JAVA_OPTIONS environment variable and it works but only for integer values.
2 is just too large (and 1 is the default, too small)

Is there a way to scale Netbeans 150% under Linux / Wayland?

The problem is, that Java  doesn't support fractional scaling (I think it's because it still uses X11)

I use 175% and in theory, FlatLaf can do fractional scaling, but not all parts of NetBeans are scaled properly
when using flatlaf.uiScale=1.75

But FlatLaf also supports fractional scaling smaller than one, so I ended setting making Java scale by 2 using -Dsun.java2d.uiScale=2 then make FlatLaf scale it down using -Dflatlaf.uiScale=0.875

As you want to got to 150% you need -Dflatlaf.uiScale=0.75




---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@netbeans.apache.org
For additional commands, e-mail: users-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to