Class CustomNimbusLookAndFeel

All Implemented Interfaces:
Serializable

public class CustomNimbusLookAndFeel extends NimbusLookAndFeel
Extends the NimbusLookAndFeel (Nimbus) to intercept getDefaults(). Nimbus does not honor changes to the UIDefaults after it is installed as the active LookAndFeel, so we have to make the changes at the time the UIDefaults are installed.

To get around this issue, we extend Nimbus so that we can install our GColors and overridden properties as Nimbus is being installed, specifically during the call to the getDefaults() method. For all other Look And Feels, the GColors and overridden properties are changed in the UIDefaults after the Look And Feel is installed, so they don't need to extend the Look and Feel class.

Also, unlike other LaFs, Nimbus needs to be reinstalled every time we need to make a change to any of the UIDefaults values, since it does not respond to changes other than when first installed.

See Also: