Re: [platform] UI scaling of a platform application in 2025
[email protected] Thu, 2 Oct 2025 16:41:04 +0200
| Newsgroups | gmane.comp.java.ide.netbeans.user |
|---|---|
| Message-ID | <[email protected]> |
My KDE system is set to 175% and I am using -J-Dflatlaf.uiScale=0.875 -J-Dsun.java2d.uiScale=2 which works better than letting FlatLaF scale by 1.75 because it also scales the images (e.g. toolbar buttons) I don't know about JavaFX though. Am 02.10.25 um 08:17 schrieb Patrik Karlström: > Due to a (now fixed) WorldWind/JOGL bug regarding mouse coordinate translation I had to do a workaround with regard to UI scaling of a platform application. > > My solution was to have "-J-Dsun.java2d.uiScale=1 -J-Dprism.allowhidpi=false -J-Dflatlaf.uiScale=1" in the default_option and scale the UI by myself depending on the value of --fontsize. > > This was around 2018 or similar and has served me well, but now I read something about that --fontsize is about to get deprecated/discouraged. > > Any suggestions on what is best practice if I want a Swing+FlatLAF+JavaFX application respect the OS default UI scaling, but with the possibility to override? > > /Patrik --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected] For further information about the NetBeans mailing lists, visit: https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists