by JIDE Support » Tue Apr 29, 2008 10:48 am
The API for Nimbus is still changing which makes it impossible to do any release on it. I just noted that the tabbed pane is not working with the latest JDKu10 release.
I think if you want to avoid any NPE, try with this NimbusInitializer. Do it after you set the L&F but before doing installJideExtension.
- Code: Select all
new NimbusWindowsUtils.NimbusInitializer().initialize(UIManager.getLookAndFeelDefaults());
- Code: Select all
public static class NimbusInitializer implements LookAndFeelFactory.UIDefaultsInitializer {
public void initialize(UIDefaults defaults) {
Object marginBorder = new SwingLazyValue(
"javax.swing.plaf.basic.BasicBorders$MarginBorder");
Object[] uiDefaults = {
"textHighlight", new ColorUIResource(197, 218, 233),
"controlText", new ColorUIResource(Color.BLACK),
"activeCaptionText", new ColorUIResource(Color.BLACK),
"MenuItem.acceleratorFont", new FontUIResource("Arial", Font.PLAIN, 12),
"ComboBox.background", new ColorUIResource(Color.WHITE),
"ComboBox.disabledForeground", new ColorUIResource(Color.DARK_GRAY),
"ComboBox.disabledBackground", new ColorUIResource(Color.GRAY),
"activeCaption", new ColorUIResource(197, 218, 233),
"inactiveCaption", new ColorUIResource(Color.DARK_GRAY),
"control", new ColorUIResource(220, 223, 228),
"controlLtHighlight", new ColorUIResource(Color.WHITE),
"controlHighlight", new ColorUIResource(Color.LIGHT_GRAY),
"controlShadow", new ColorUIResource(133, 137, 144),
"controlDkShadow", new ColorUIResource(Color.BLACK),
"MenuItem.background", new ColorUIResource(237, 239, 242),
"SplitPane.background", new ColorUIResource(220, 223, 228),
"Tree.hash", new ColorUIResource(Color.GRAY),
"TextField.foreground", new ColorUIResource(Color.BLACK),
"TextField.inactiveForeground", new ColorUIResource(Color.BLACK),
"TextField.selectionForeground", new ColorUIResource(Color.WHITE),
"TextField.selectionBackground", new ColorUIResource(197, 218, 233),
"Table.gridColor", new ColorUIResource(Color.BLACK),
"TextField.background", new ColorUIResource(Color.WHITE),
"Menu.border", marginBorder,
"MenuItem.border", marginBorder,
"CheckBoxMenuItem.border", marginBorder,
"RadioButtonMenuItem.border", marginBorder,
};
LookAndFeelFactory.putDefaults(defaults, uiDefaults);
}
}
Thanks,
JIDE Software Technical Support Team