private void defineTables(UIDefaults d){
  d.put("tableHeaderBorderEnabled",new Color(0xcad3e0));
  d.put("tableHeaderSortIndicator",new Color(0xc02a5481,true));
  d.put("tableHeaderInteriorBaseEnabled",new Color(0x80a6d2));
  String p="TableHeader";
  String c=PAINTER_PREFIX + "TableHeaderPainter";
  d.put(p + "[Enabled].ascendingSortIconPainter",new LazyPainter(c,TableHeaderPainter.Which.ASCENDINGSORTICON_ENABLED));
  d.put(p + "[Enabled].descendingSortIconPainter",new LazyPainter(c,TableHeaderPainter.Which.DESCENDINGSORTICON_ENABLED));
  p="Table";
  d.put(p + ".background",new ColorUIResource(Color.WHITE));
  d.put(p + ".alternateRowColor",new ColorUIResource(0xebf5fc));
  d.put(p + ".showGrid",Boolean.FALSE);
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put(p + ".opaque",Boolean.TRUE);
  d.put(p + ".intercellSpacing",new DimensionUIResource(0,0));
  d.put(p + ".rendererUseTableColors",Boolean.TRUE);
  d.put(p + ".rendererUseUIBorder",Boolean.TRUE);
  d.put(p + ".cellNoFocusBorder",new BorderUIResource(BorderFactory.createEmptyBorder(2,5,2,5)));
  d.put(p + "[Enabled+Selected].textForeground",Color.WHITE);
  d.put(p + "[Enabled+Selected].textBackground",new Color(0x6181a5));
  d.put(p + "[Disabled+Selected].textBackground",new Color(0x6181a5));
  d.put(p + ".ascendingSortIcon",new SeaGlassIcon("TableHeader","ascendingSortIconPainter",8,7));
  d.put(p + ".descendingSortIcon",new SeaGlassIcon("TableHeader","descendingSortIconPainter",8,7));
  d.put(p + ".scrollPaneCornerComponent",TableScrollPaneCorner.class);
  c=PAINTER_PREFIX + "TableHeaderRendererPainter";
  p="TableHeader:\"TableHeader.renderer\"";
  d.put(p + ".contentMargins",new InsetsUIResource(2,4,2,4));
  d.put(p + ".States","Enabled,Pressed,Disabled,Focused,Sorted");
  d.put(p + ".Sorted",new TableHeaderRendererSortedState());
  d.put(p + "[Disabled].backgroundPainter",new LazyPainter(c,TableHeaderRendererPainter.Which.BACKGROUND_DISABLED));
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,TableHeaderRendererPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[Enabled+Focused].backgroundPainter",new LazyPainter(c,TableHeaderRendererPainter.Which.BACKGROUND_ENABLED_FOCUSED));
  d.put(p + "[Pressed].backgroundPainter",new LazyPainter(c,TableHeaderRendererPainter.Which.BACKGROUND_PRESSED));
  d.put(p + "[Enabled+Sorted].backgroundPainter",new LazyPainter(c,TableHeaderRendererPainter.Which.BACKGROUND_ENABLED_SORTED));
  d.put(p + "[Enabled+Focused+Sorted].backgroundPainter",new LazyPainter(c,TableHeaderRendererPainter.Which.BACKGROUND_ENABLED_FOCUSED_SORTED));
  d.put(p + "[Disabled+Sorted].backgroundPainter",new LazyPainter(c,TableHeaderRendererPainter.Which.BACKGROUND_DISABLED_SORTED));
}

private void defineTables ( UIDefaults d ) { d . put ( "tableHeaderBorderEnabled" , new Color ( 0xcad3e0 ) ) ; d . put ( "tableHeaderSortIndicator" , new Color ( 0xc02a5481 , true ) ) ; d . put ( "tableHeaderInteriorBaseEnabled" , new Color ( 0x80a6d2 ) ) ; String p = "TableHeader" ; String c = PAINTER_PREFIX + "TableHeaderPainter" ; d . put ( p + "[Enabled].ascendingSortIconPainter" , new LazyPainter ( c , TableHeaderPainter . Which . ASCENDINGSORTICON_ENABLED ) ) ; d . put ( p + "[Enabled].descendingSortIconPainter" , new LazyPainter ( c , TableHeaderPainter . Which . DESCENDINGSORTICON_ENABLED ) ) ; p = "Table" ; d . put ( p + ".background" , new ColorUIResource ( Color . WHITE ) ) ; d . put ( p + ".alternateRowColor" , new ColorUIResource ( 0xebf5fc ) ) ; d . put ( p + ".showGrid" , Boolean . FALSE ) ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + ".opaque" , Boolean . TRUE ) ; d . put ( p + ".intercellSpacing" , new DimensionUIResource ( 0 , 0 ) ) ; d . put ( p + ".rendererUseTableColors" , Boolean . TRUE ) ; d . put ( p + ".rendererUseUIBorder" , Boolean . TRUE ) ; d . put ( p + ".cellNoFocusBorder" , new BorderUIResource ( BorderFactory . createEmptyBorder ( 2 , 5 , 2 , 5 ) ) ) ; d . put ( p + "[Enabled+Selected].textForeground" , Color . WHITE ) ; d . put ( p + "[Enabled+Selected].textBackground" , new Color ( 0x6181a5 ) ) ; d . put ( p + "[Disabled+Selected].textBackground" , new Color ( 0x6181a5 ) ) ; d . put ( p + ".ascendingSortIcon" , new SeaGlassIcon ( "TableHeader" , "ascendingSortIconPainter" , 8 , 7 ) ) ; d . put ( p + ".descendingSortIcon" , new SeaGlassIcon ( "TableHeader" , "descendingSortIconPainter" , 8 , 7 ) ) ; d . put ( p + ".scrollPaneCornerComponent" , TableScrollPaneCorner . class ) ; c = PAINTER_PREFIX + "TableHeaderRendererPainter" ; p = "TableHeader:\"TableHeader.renderer\"" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 2 , 4 , 2 , 4 ) ) ; d . put ( p + ".States" , "Enabled,Pressed,Disabled,Focused,Sorted" ) ; d . put ( p + ".Sorted" , new TableHeaderRendererSortedState ( ) ) ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , TableHeaderRendererPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , TableHeaderRendererPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Enabled+Focused].backgroundPainter" , new LazyPainter ( c , TableHeaderRendererPainter . Which . BACKGROUND_ENABLED_FOCUSED ) ) ; d . put ( p + "[Pressed].backgroundPainter" , new LazyPainter ( c , TableHeaderRendererPainter . Which . BACKGROUND_PRESSED ) ) ; d . put ( p + "[Enabled+Sorted].backgroundPainter" , new LazyPainter ( c , TableHeaderRendererPainter . Which . BACKGROUND_ENABLED_SORTED ) ) ; d . put ( p + "[Enabled+Focused+Sorted].backgroundPainter" , new LazyPainter ( c , TableHeaderRendererPainter . Which . BACKGROUND_ENABLED_FOCUSED_SORTED ) ) ; d . put ( p + "[Disabled+Sorted].backgroundPainter" , new LazyPainter ( c , TableHeaderRendererPainter . Which . BACKGROUND_DISABLED_SORTED ) ) ; }
initialize the table ui settings .
