Re: Nimbus Look and Feel is not applied correctly all the time
Neil C Smith <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAHvRSodGzj-_Kzx=O3hLCyfhw2V3hyByk46ZrJo37WSfHFzQyw@mail.gmail.com> |
On 28 July 2016 at 15:58, bbergeson <[email protected]> wrote: > In the installer class I am doing the following to set the look and feel. I have some extra code since I was trying to allow the user to be able to pick a normal Nimbus L&F or a Dark Nimbus L&F, but I have not been able to get the switching to work right when switching from the Dark Nimbus L&F back to the normal L&F, but that is a different topic. Note that in my code (which is forked from Dark Nimbus anyway) I don't use UIManager.setLookAndFeel(), just install the look and feel, and this is done in the validate() method. In my experience, both those things are necessary to get this to work correctly. To get the user to choose the look and feel, you want to set the laf preference and force a restart. Setting the look and feel after the UI has initialized is very hit and miss. Best wishes, Neil -- Neil C Smith Artist : Technologist : Adviser http://neilcsmith.net Praxis LIVE - hybrid visual IDE for creative coding - www.praxislive.org Digital Prisoners - interactive spaces and projections - www.digitalprisoners.co.uk