Re: Nimbus Look and Feel is not applied correctly all the time
Peter Hansson <[email protected]>
| Newsgroups | gmane.comp.java.netbeans.modules.openide.devel |
|---|---|
| Message-ID | <CAC55jYOwbKvQreoK3bpdLTrOJnOCsoPzq8y7x5yGCJkQFS8z-A@mail.gmail.com> |
On the topic of runtime switching of L&F: See https://blogs.oracle.com/geertjan/entry/runtime_switching_between_look_and or a more recent one (which is probably better): https://blogs.oracle.com/geertjan/entry/runtime_look_and_feel_switching Peter On Thu, Jul 28, 2016 at 7:29 PM, bbergeson <[email protected]> wrote: > Okay, thanks to your help it seems to be working now. The theme is > displayed correctly every time after launching it 32 times. To get it > working I had to do the following: > > 1. I had to set the Look and Feel in the validate method instead of the > restored method. > 2. I had to change another one of my modules that has an installer class > and move that code from the restored method to the validate method; > otherwise I would get an illegalStateException when it tried to display the > splash screen. > 3. I had to use my original code that sets the Look and Feel rather than > installing it as suggested in the previous post. If I install it(the > normal Nimbus L&F) then it shows up twice in the Options->Appearance->Look > And Feel drop down box AND some of my icons have a white border around them > as if they are not transparent. > > Again, thanks to everyone's help. I will now create a separate post to > deal with allowing the user to switch between the Normal and Dark Nimbus > Look and Feels. > > > > >