- Code: Select all
UIManager.setLookAndFeel(UIManager.getSystemLookAndFeelClassName()); LookAndFeelFactory.installJideExtension(LookAndFeelFactory.VSNET_STYLE_WITHOUT_MENU);
and creating my JideTabbedPane as such:
- Code: Select all
_tabs = new JideTabbedPane();
_tabs.setContentBorderInsets(new Insets(0, 0, 0, 0));
_tabs.setUseDefaultShowCloseButtonOnTab(false);
_tabs.setShowCloseButton(true);
_tabs.setShowCloseButtonOnTab(true);
_tabs.setShowTabButtons(true);
_tabs.setBoldActiveTab(true);
_tabs.setTabResizeMode(JideTabbedPane.RESIZE_MODE_NONE);
_tabs.setHideOneTab(false);
_tabs.setTabEditingAllowed(false);
_tabs.setBorder(BorderFactory.createEmptyBorder(0,0,0,0));
_tabs.setTabShape(JideTabbedPane.SHAPE_ROUNDED_VSNET);
_tabs.setColorTheme(JideTabbedPane.COLOR_THEME_VSNET);
_contentPanel.add(_tabs, BorderLayout.CENTER);
I've attempted using UIManager.put("JideTabbedPane,background", Color.red), as well as using LookAndFeelFactory.addUIDefaultsCustomizer to set up the UIDefaults. It looks like the tab shape and color theme are taking precedence over the UIDefaults. So I attempted the following, which had no effect:
- Code: Select all
_tabs.setUI(new VsnetJideTabbedPaneUI() {
protected void installBackgroundColor() {
super.installBackgroundColor();
super._backgroundSelectedColorStart = Color.black;
super._backgroundSelectedColorEnd = Color.blue;
super._backgroundUnselectedColorStart = Color.white;
super._backgroundUnselectedColorEnd= Color.red;
super._tabBackground = Color.green;
}
}
What's the proper way to do this color customization?
Thanks in advance,
Jason