private void defineTabbedPanes(UIDefaults d){
  d.put("TabbedPane.contentMargins",new InsetsUIResource(0,0,0,0));
  d.put("TabbedPane.tabAreaStatesMatchSelectedTab",Boolean.TRUE);
  d.put("TabbedPane.nudgeSelectedLabel",Boolean.FALSE);
  d.put("TabbedPane.tabRunOverlay",new Integer(2));
  d.put("TabbedPane.tabOverlap",new Integer(-1));
  d.put("TabbedPane.extendTabsToBase",Boolean.TRUE);
  d.put("TabbedPane.useBasicArrows",Boolean.TRUE);
  addColor(d,"TabbedPane.shadow","seaGlassDisabledText",0.0f,0.0f,0.0f,0);
  addColor(d,"TabbedPane.darkShadow","text",0.0f,0.0f,0.0f,0);
  addColor(d,"TabbedPane.highlight","seaGlassLightBackground",0.0f,0.0f,0.0f,0);
  d.put("TabbedPane:TabbedPaneTab.contentMargins",new InsetsUIResource(2,8,3,8));
  addColor(d,"TabbedPane:TabbedPaneTab[Disabled].textForeground","seaGlassDisabledText",0.0f,0.0f,0.0f,0);
  addColor(d,"TabbedPane:TabbedPaneTab[Pressed+Selected].textForeground",255,255,255,255);
  addColor(d,"TabbedPane:TabbedPaneTab[Focused+Pressed+Selected].textForeground",255,255,255,255);
  d.put("TabbedPane:TabbedPaneTabArea.contentMargins",new InsetsUIResource(3,10,4,10));
  d.put("TabbedPane:TabbedPaneContent.contentMargins",new InsetsUIResource(0,0,0,0));
  d.put("tabbedPaneTabAreaBackLineEnabled",new Color(0x647595));
  d.put("tabbedPaneTabAreaLightShadow",new Color(0x55eeeeee,true));
  d.put("tabbedPaneTabAreaDarkShadow",new Color(0x55aaaaaa,true));
  d.put("seaGlassTabbedPaneTabCloseGraphicInnerShadowBase",new Color(0x2a509b));
  d.put("seaGlassTabbedPaneTabCloseGraphicBase",Color.WHITE);
  d.put("seaGlassTabbedPaneTabCloseGraphicDropShadowBase",Color.BLACK);
  d.put("seaGlassTabbedPaneTabCloseBorderBase",new Color(0x20448e));
  String p="TabbedPane";
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put(p + ".tabRunOverlay",new Integer(0));
  d.put(p + ".useBasicArrows",Boolean.FALSE);
  d.put(p + ".closeButtonMargins",new Rectangle(2,2,2,2));
  d.put(p + ".closeButtonSize",new Integer(11));
  String c=PAINTER_PREFIX + "TabbedPaneTabPainter";
  p="TabbedPane:TabbedPaneTab";
  d.put(p + ".States","Enabled,Pressed,Disabled,MouseOver,Focused,Selected,Default");
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,TabbedPaneTabPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[Enabled+Pressed].backgroundPainter",new LazyPainter(c,TabbedPaneTabPainter.Which.BACKGROUND_PRESSED));
  d.put(p + "[Disabled].backgroundPainter",new LazyPainter(c,TabbedPaneTabPainter.Which.BACKGROUND_DISABLED));
  d.put(p + "[Disabled+Selected].backgroundPainter",new LazyPainter(c,TabbedPaneTabPainter.Which.BACKGROUND_DISABLED_SELECTED));
  d.put(p + "[Selected].backgroundPainter",new LazyPainter(c,TabbedPaneTabPainter.Which.BACKGROUND_SELECTED));
  d.put(p + "[Selected+MouseOver].backgroundPainter",new LazyPainter(c,TabbedPaneTabPainter.Which.BACKGROUND_SELECTED));
  d.put(p + "[Pressed+Selected].backgroundPainter",new LazyPainter(c,TabbedPaneTabPainter.Which.BACKGROUND_PRESSED_SELECTED));
  d.put(p + "[Focused+Selected].backgroundPainter",new LazyPainter(c,TabbedPaneTabPainter.Which.BACKGROUND_SELECTED_FOCUSED));
  d.put(p + "[Focused+Pressed+Selected].backgroundPainter",new LazyPainter(c,TabbedPaneTabPainter.Which.BACKGROUND_PRESSED_SELECTED_FOCUSED));
  d.put(p + "[Disabled].textForeground",d.get("seaGlassDisabledText"));
  d.put(p + "[Pressed+Selected].textForeground",Color.BLACK);
  d.put(p + "[Focused+Pressed+Selected].textForeground",Color.BLACK);
  p="TabbedPane:TabbedPaneTab:TabbedPaneTabClaseButton";
  c=PAINTER_PREFIX + "TabbedPaneTabCloseButtonPainter";
  d.put(p + ".States","Enabled,Pressed,Disabled,MouseOver,Focused");
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put(p + "[Disabled].foregroundPainter",new LazyPainter(c,TabbedPaneTabCloseButtonPainter.Which.DISABLED));
  d.put(p + "[Enabled].foregroundPainter",new LazyPainter(c,TabbedPaneTabCloseButtonPainter.Which.ENABLED));
  d.put(p + "[MouseOver].foregroundPainter",new LazyPainter(c,TabbedPaneTabCloseButtonPainter.Which.MOUSEOVER));
  d.put(p + "[Focused].foregroundPainter",new LazyPainter(c,TabbedPaneTabCloseButtonPainter.Which.FOCUSED));
  d.put(p + "[Pressed].foregroundPainter",new LazyPainter(c,TabbedPaneTabCloseButtonPainter.Which.PRESSED));
  p="TabbedPane:TabbedPaneTabArea";
  c=PAINTER_PREFIX + "TabbedPaneTabAreaPainter";
  d.put(p + ".contentMargins",new InsetsUIResource(3,10,3,10));
  d.put(p + ".States","Enabled,Disabled,Top,Left,Bottom,Right");
  d.put(p + ".Top",new TabbedPaneTopTabState());
  d.put(p + ".Left",new TabbedPaneLeftTabState());
  d.put(p + ".Bottom",new TabbedPaneBottomTabState());
  d.put(p + ".Right",new TabbedPaneRightTabState());
  d.put(p + "[Enabled+Top].backgroundPainter",new LazyPainter(c,TabbedPaneTabAreaPainter.Which.BACKGROUND_ENABLED_TOP));
  d.put(p + "[Disabled+Top].backgroundPainter",new LazyPainter(c,TabbedPaneTabAreaPainter.Which.BACKGROUND_DISABLED_TOP));
  d.put(p + "[Enabled+Left].backgroundPainter",new LazyPainter(c,TabbedPaneTabAreaPainter.Which.BACKGROUND_ENABLED_LEFT));
  d.put(p + "[Disabled+Left].backgroundPainter",new LazyPainter(c,TabbedPaneTabAreaPainter.Which.BACKGROUND_DISABLED_LEFT));
  d.put(p + "[Enabled+Bottom].backgroundPainter",new LazyPainter(c,TabbedPaneTabAreaPainter.Which.BACKGROUND_ENABLED_BOTTOM));
  d.put(p + "[Disabled+Bottom].backgroundPainter",new LazyPainter(c,TabbedPaneTabAreaPainter.Which.BACKGROUND_DISABLED_BOTTOM));
  d.put(p + "[Enabled+Right].backgroundPainter",new LazyPainter(c,TabbedPaneTabAreaPainter.Which.BACKGROUND_ENABLED_RIGHT));
  d.put(p + "[Disabled+Right].backgroundPainter",new LazyPainter(c,TabbedPaneTabAreaPainter.Which.BACKGROUND_DISABLED_RIGHT));
  c=PAINTER_PREFIX + "ArrowButtonPainter";
  p="TabbedPane:TabbedPaneTabArea:\"TabbedPaneTabArea.button\"";
  d.put(p + ".States","Enabled,Pressed,MouseOver,Disabled");
  d.put(p + "[Disabled].foreground",new ColorUIResource(0x9ba8cf));
  d.put(p + "[Enabled].foreground",new ColorUIResource(Color.BLACK));
  d.put(p + "[Pressed].foreground",new ColorUIResource(0x134D8C));
  d.put(p + "[Disabled].foregroundPainter",new LazyPainter(c,ArrowButtonPainter.Which.FOREGROUND_DISABLED));
  d.put(p + "[Enabled].foregroundPainter",new LazyPainter(c,ArrowButtonPainter.Which.FOREGROUND_ENABLED));
  d.put(p + "[MouseOver].foregroundPainter",new LazyPainter(c,ArrowButtonPainter.Which.FOREGROUND_ENABLED));
  d.put(p + "[Pressed].foregroundPainter",new LazyPainter(c,ArrowButtonPainter.Which.FOREGROUND_PRESSED));
  p="TabbedPane:TabbedPaneContent";
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
}

private void defineTabbedPanes ( UIDefaults d ) { d . put ( "TabbedPane.contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( "TabbedPane.tabAreaStatesMatchSelectedTab" , Boolean . TRUE ) ; d . put ( "TabbedPane.nudgeSelectedLabel" , Boolean . FALSE ) ; d . put ( "TabbedPane.tabRunOverlay" , new Integer ( 2 ) ) ; d . put ( "TabbedPane.tabOverlap" , new Integer ( - 1 ) ) ; d . put ( "TabbedPane.extendTabsToBase" , Boolean . TRUE ) ; d . put ( "TabbedPane.useBasicArrows" , Boolean . TRUE ) ; addColor ( d , "TabbedPane.shadow" , "seaGlassDisabledText" , 0.0f , 0.0f , 0.0f , 0 ) ; addColor ( d , "TabbedPane.darkShadow" , "text" , 0.0f , 0.0f , 0.0f , 0 ) ; addColor ( d , "TabbedPane.highlight" , "seaGlassLightBackground" , 0.0f , 0.0f , 0.0f , 0 ) ; d . put ( "TabbedPane:TabbedPaneTab.contentMargins" , new InsetsUIResource ( 2 , 8 , 3 , 8 ) ) ; addColor ( d , "TabbedPane:TabbedPaneTab[Disabled].textForeground" , "seaGlassDisabledText" , 0.0f , 0.0f , 0.0f , 0 ) ; addColor ( d , "TabbedPane:TabbedPaneTab[Pressed+Selected].textForeground" , 255 , 255 , 255 , 255 ) ; addColor ( d , "TabbedPane:TabbedPaneTab[Focused+Pressed+Selected].textForeground" , 255 , 255 , 255 , 255 ) ; d . put ( "TabbedPane:TabbedPaneTabArea.contentMargins" , new InsetsUIResource ( 3 , 10 , 4 , 10 ) ) ; d . put ( "TabbedPane:TabbedPaneContent.contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( "tabbedPaneTabAreaBackLineEnabled" , new Color ( 0x647595 ) ) ; d . put ( "tabbedPaneTabAreaLightShadow" , new Color ( 0x55eeeeee , true ) ) ; d . put ( "tabbedPaneTabAreaDarkShadow" , new Color ( 0x55aaaaaa , true ) ) ; d . put ( "seaGlassTabbedPaneTabCloseGraphicInnerShadowBase" , new Color ( 0x2a509b ) ) ; d . put ( "seaGlassTabbedPaneTabCloseGraphicBase" , Color . WHITE ) ; d . put ( "seaGlassTabbedPaneTabCloseGraphicDropShadowBase" , Color . BLACK ) ; d . put ( "seaGlassTabbedPaneTabCloseBorderBase" , new Color ( 0x20448e ) ) ; String p = "TabbedPane" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + ".tabRunOverlay" , new Integer ( 0 ) ) ; d . put ( p + ".useBasicArrows" , Boolean . FALSE ) ; d . put ( p + ".closeButtonMargins" , new Rectangle ( 2 , 2 , 2 , 2 ) ) ; d . put ( p + ".closeButtonSize" , new Integer ( 11 ) ) ; String c = PAINTER_PREFIX + "TabbedPaneTabPainter" ; p = "TabbedPane:TabbedPaneTab" ; d . put ( p + ".States" , "Enabled,Pressed,Disabled,MouseOver,Focused,Selected,Default" ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Enabled+Pressed].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabPainter . Which . BACKGROUND_PRESSED ) ) ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[Disabled+Selected].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabPainter . Which . BACKGROUND_DISABLED_SELECTED ) ) ; d . put ( p + "[Selected].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabPainter . Which . BACKGROUND_SELECTED ) ) ; d . put ( p + "[Selected+MouseOver].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabPainter . Which . BACKGROUND_SELECTED ) ) ; d . put ( p + "[Pressed+Selected].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabPainter . Which . BACKGROUND_PRESSED_SELECTED ) ) ; d . put ( p + "[Focused+Selected].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabPainter . Which . BACKGROUND_SELECTED_FOCUSED ) ) ; d . put ( p + "[Focused+Pressed+Selected].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabPainter . Which . BACKGROUND_PRESSED_SELECTED_FOCUSED ) ) ; d . put ( p + "[Disabled].textForeground" , d . get ( "seaGlassDisabledText" ) ) ; d . put ( p + "[Pressed+Selected].textForeground" , Color . BLACK ) ; d . put ( p + "[Focused+Pressed+Selected].textForeground" , Color . BLACK ) ; p = "TabbedPane:TabbedPaneTab:TabbedPaneTabClaseButton" ; c = PAINTER_PREFIX + "TabbedPaneTabCloseButtonPainter" ; d . put ( p + ".States" , "Enabled,Pressed,Disabled,MouseOver,Focused" ) ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + "[Disabled].foregroundPainter" , new LazyPainter ( c , TabbedPaneTabCloseButtonPainter . Which . DISABLED ) ) ; d . put ( p + "[Enabled].foregroundPainter" , new LazyPainter ( c , TabbedPaneTabCloseButtonPainter . Which . ENABLED ) ) ; d . put ( p + "[MouseOver].foregroundPainter" , new LazyPainter ( c , TabbedPaneTabCloseButtonPainter . Which . MOUSEOVER ) ) ; d . put ( p + "[Focused].foregroundPainter" , new LazyPainter ( c , TabbedPaneTabCloseButtonPainter . Which . FOCUSED ) ) ; d . put ( p + "[Pressed].foregroundPainter" , new LazyPainter ( c , TabbedPaneTabCloseButtonPainter . Which . PRESSED ) ) ; p = "TabbedPane:TabbedPaneTabArea" ; c = PAINTER_PREFIX + "TabbedPaneTabAreaPainter" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 3 , 10 , 3 , 10 ) ) ; d . put ( p + ".States" , "Enabled,Disabled,Top,Left,Bottom,Right" ) ; d . put ( p + ".Top" , new TabbedPaneTopTabState ( ) ) ; d . put ( p + ".Left" , new TabbedPaneLeftTabState ( ) ) ; d . put ( p + ".Bottom" , new TabbedPaneBottomTabState ( ) ) ; d . put ( p + ".Right" , new TabbedPaneRightTabState ( ) ) ; d . put ( p + "[Enabled+Top].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabAreaPainter . Which . BACKGROUND_ENABLED_TOP ) ) ; d . put ( p + "[Disabled+Top].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabAreaPainter . Which . BACKGROUND_DISABLED_TOP ) ) ; d . put ( p + "[Enabled+Left].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabAreaPainter . Which . BACKGROUND_ENABLED_LEFT ) ) ; d . put ( p + "[Disabled+Left].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabAreaPainter . Which . BACKGROUND_DISABLED_LEFT ) ) ; d . put ( p + "[Enabled+Bottom].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabAreaPainter . Which . BACKGROUND_ENABLED_BOTTOM ) ) ; d . put ( p + "[Disabled+Bottom].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabAreaPainter . Which . BACKGROUND_DISABLED_BOTTOM ) ) ; d . put ( p + "[Enabled+Right].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabAreaPainter . Which . BACKGROUND_ENABLED_RIGHT ) ) ; d . put ( p + "[Disabled+Right].backgroundPainter" , new LazyPainter ( c , TabbedPaneTabAreaPainter . Which . BACKGROUND_DISABLED_RIGHT ) ) ; c = PAINTER_PREFIX + "ArrowButtonPainter" ; p = "TabbedPane:TabbedPaneTabArea:\"TabbedPaneTabArea.button\"" ; d . put ( p + ".States" , "Enabled,Pressed,MouseOver,Disabled" ) ; d . put ( p + "[Disabled].foreground" , new ColorUIResource ( 0x9ba8cf ) ) ; d . put ( p + "[Enabled].foreground" , new ColorUIResource ( Color . BLACK ) ) ; d . put ( p + "[Pressed].foreground" , new ColorUIResource ( 0x134D8C ) ) ; d . put ( p + "[Disabled].foregroundPainter" , new LazyPainter ( c , ArrowButtonPainter . Which . FOREGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].foregroundPainter" , new LazyPainter ( c , ArrowButtonPainter . Which . FOREGROUND_ENABLED ) ) ; d . put ( p + "[MouseOver].foregroundPainter" , new LazyPainter ( c , ArrowButtonPainter . Which . FOREGROUND_ENABLED ) ) ; d . put ( p + "[Pressed].foregroundPainter" , new LazyPainter ( c , ArrowButtonPainter . Which . FOREGROUND_PRESSED ) ) ; p = "TabbedPane:TabbedPaneContent" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; }
initialize the tabbed pane settings .
