Re: Remove old LAFs from application and use new default LAF instead

2022-08-31 Thread Mike Hallan
Neil, thank you, that is much better! For some reason, I didn't realize that just setting the LAF in NbPreferences is all that was required. As for filtering, in validate() I just call UIManager.setInstalledLookAndFeels(flatLafs) where UIManager.LookAndFeelInfo[] flatLafs contains just the 2 Fl

Re: Remove old LAFs from application and use new default LAF instead

2022-08-31 Thread Neil C Smith
On Wed, 31 Aug 2022 at 14:28, Mike Hallan wrote: > I found that Installer's validate() may not return the correct LAF that will > actually be used. No, it won't. It'll run before NetBeans sets up the look and feel. Which is actually what you want. I suggested you look at filtering the install

Re: Remove old LAFs from application and use new default LAF instead

2022-08-31 Thread Mike Hallan
Thanks Neil, I have the FlatLaf modules already installed when compiled. I found that Installer's validate() may not return the correct LAF that will actually be used. i.e. In validate(), UIManager.getLookAndFeel() may return Metal and then go on to a later stage where it will actually become W

Re: Remove old LAFs from application and use new default LAF instead

2022-08-31 Thread Neil C Smith
On Wed, 31 Aug 2022 at 12:30, Mike Hallan wrote: > Sounds like there is no simple or non-brittle way to do this. Thanks anyway. You might also look at configuring the installed look and feels - https://docs.oracle.com/en/java/javase/11/docs/api/java.desktop/javax/swing/UIManager.html#setInstalled

Re: Remove old LAFs from application and use new default LAF instead

2022-08-31 Thread Mike Hallan
Sounds like there is no simple or non-brittle way to do this. Thanks anyway. On Tuesday, August 30, 2022 at 04:56:10 AM GMT+3, Laszlo Kishalmi wrote: Right now we are using all installed LaF-s to display in the combo box. You might create an SPI PR for a filtering interface. It's in

Re: Remove old LAFs from application and use new default LAF instead

2022-08-29 Thread Laszlo Kishalmi
Right now we are using all installed LaF-s to display in the combo box. You might create an SPI PR for a filtering interface. It's in the platform/core.windows module. You might create something that checks/changes the following file on startup: $USER_DIR/config/Preferences/laf.properties O

Remove old LAFs from application and use new default LAF instead

2022-08-29 Thread Mike Hallan
Hi, I would like to remove all LAFs so that the only ones available in MyApp are "FlatLaf Light" and "FlatLaf Dark".I have set the default LAF in branding resource bundle for MyApp to be com.formdev.flatlaf.FlatLightLaf.Ideally I want that if a user of a previous version of MyApp, who had been u