UIDefaults defaults = UIManager.getLookAndFeelDefaults();  tabPane.setFont(defaults.getFont("TabbedPane.font")); tabPane.setForeground(defaults.getColor("TabbedPane.foreground")); tabPane.setBackground(defaults.getColor("TabbedPane.background"));
LookAndFeel.installColorsAndFont(tabPane, "TabbedPane.background", "TabbedPane.foreground", "TabbedPane.font");
  protected void installDefaults()  {    UIDefaults defaults = UIManager.getLookAndFeelDefaults();    tabPane.setFont(defaults.getFont("TabbedPane.font"));    tabPane.setForeground(defaults.getColor("TabbedPane.foreground"));    tabPane.setBackground(defaults.getColor("TabbedPane.background"));    tabPane.setOpaque(false);    highlight = defaults.getColor("TabbedPane.highlight");    lightHighlight = defaults.getColor("TabbedPane.lightHighlight");    shadow = defaults.getColor("TabbedPane.shadow");    darkShadow = defaults.getColor("TabbedPane.darkShadow");    focus = defaults.getColor("TabbedPane.focus");    textIconGap = defaults.getInt("TabbedPane.textIconGap");    tabRunOverlay = defaults.getInt("TabbedPane.tabRunOverlay");    tabInsets = defaults.getInsets("TabbedPane.tabbedPaneTabInsets");    selectedTabPadInsets = defaults.getInsets("TabbedPane.tabbedPaneTabPadInsets");    tabAreaInsets = defaults.getInsets("TabbedPane.tabbedPaneTabAreaInsets");    contentBorderInsets = defaults.getInsets("TabbedPane.tabbedPaneContentBorderInsets");    calcRect = new Rectangle();    tabRuns = new int[10];    tabAreaRect = new Rectangle();    contentRect = new Rectangle();  }