I ran the demo from this jar:
https://download.formdev.com/flatlaf/flatlaf-demo-latest.jar
Adding "@foreground = #ff0000" did take effect - I got red font in various
places.

Just had an epiphany: I have been adding "--fontsize 16" to netbeans.conf
for years (old man, old eyes). I removed that and the "defaultFont=36" took
effect. "--fontsize 16" must be overriding or inhibiting some of the
FlatLaf settings. (A warning/error in this situation would be helpful.)

Final contents of my ~/.netbeans/26/config/LookAndFeel/FlatLaf.properties
file is:

defaultFont = 16 Dialog, "Noto Sans", Roboto, Ubuntu, Arial, Monospace

and is working just like I want it to. Also saves me a step updating
netbeans.conf at upgrade time.

Thanks all for the help!

Suggestion: incorporate the FlatLaf demo/theme editor into NetBeans -
making the changes on the fly and persisting them
to ~/.netbeans/26/config/LookAndFeel/FlatLaf.properties (or wherever).



Mitch Claborn

On Fri, Jun 20, 2025 at 11:48 AM Neil C Smith <neilcsm...@apache.org> wrote:

> On Fri, 20 Jun 2025 at 17:32, Mitch Claborn <i...@hatcherymanager.com>
> wrote:
> > The FlatLaf 3.6 demo works fine as far as changing font family and size.
> It is not saving the font options between runs, but not sure if it is
> supposed to. It  does save the Theme selection.
> >
> > In the demo I did File > Open on
> ~/.netbeans/26/config/LookAndFeel/FlatLaf.properties and did not see any
> changes in the UI, but not sure if that is supposed to work or not.
>
> Can you confirm whether you're using the zip or the Snap or something else?
>
> Just to make sure it's not something weird in font configuration, try
> adding this in your NetBeans file -
>
> @foreground = #ff0000
>
> That should be obvious whether the file is being picked up or not.
>
> Best wishes,
>
> Neil
>

Reply via email to