Search code examples
javaswinglook-and-feelnimbus

Nimbus Look and feel returns Null for UIManager.getColor("inactiveCaptionBorder")


I am getting NPE here:

Color base = UIManager.getColor("inactiveCaptionBorder");

while

UIManager.setLookAndFeel("com.sun.java.swing.plaf.nimbus.NimbusLookAndFeel");

is set to the application.

Any information is appreciable.

Thanks in advance.


Solution

  • Value for inactiveCaptionBorder doesn't exist in the Nimbus Defaults, looks like as this value from SystemColor isn't directly applied in Nimbus Look and Feel (I searching for String with value inactive in the Nimbus defaults and foud there only two values == inactiveCaption, textInactiveText)

    list of UIDefaults by @camickr