private void defineTrees(UIDefaults d){
  String p="Tree";
  String c=PAINTER_PREFIX + "TreePainter";
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put(p + ".opaque",Boolean.TRUE);
  d.put(p + ".textForeground",d.get("text"));
  d.put(p + ".textBackground",d.get("seaGlassLightBackground"));
  d.put(p + ".background",d.get("seaGlassLightBackground"));
  d.put(p + ".rendererFillBackground",Boolean.FALSE);
  d.put(p + ".leftChildIndent",new Integer(12));
  d.put(p + ".rightChildIndent",new Integer(8));
  d.put(p + ".drawHorizontalLines",Boolean.FALSE);
  d.put(p + ".drawVerticalLines",Boolean.FALSE);
  d.put(p + ".showsRootHandles",Boolean.FALSE);
  d.put(p + ".rendererUseTreeColors",Boolean.TRUE);
  d.put(p + ".repaintWholeRow",Boolean.TRUE);
  d.put(p + ".rowHeight",new Integer(0));
  d.put(p + ".rendererMargins",new InsetsUIResource(2,5,1,5));
  d.put(p + ".selectionForeground",d.get("seaGlassSelectedText"));
  d.put(p + ".selectionBackground",d.get("seaGlassSelectionBackground"));
  d.put(p + ".dropLineColor",d.get("seaGlassFocus"));
  d.put(p + "[Enabled].collapsedIconPainter",new LazyPainter(c,TreePainter.Which.COLLAPSEDICON_ENABLED));
  d.put(p + "[Enabled+Selected].collapsedIconPainter",new LazyPainter(c,TreePainter.Which.COLLAPSEDICON_ENABLED_SELECTED));
  d.put(p + "[Enabled].expandedIconPainter",new LazyPainter(c,TreePainter.Which.EXPANDEDICON_ENABLED));
  d.put(p + "[Enabled+Selected].expandedIconPainter",new LazyPainter(c,TreePainter.Which.EXPANDEDICON_ENABLED_SELECTED));
  d.put(p + ".collapsedIcon",new SeaGlassIcon(p,"collapsedIconPainter",7,7));
  d.put(p + ".expandedIcon",new SeaGlassIcon(p,"expandedIconPainter",7,7));
  d.put(p + ".leafIcon",null);
  d.put(p + ".closedIcon",null);
  d.put(p + ".openIcon",null);
  p="Tree:TreeCell";
  c=PAINTER_PREFIX + "TreeCellPainter";
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put(p + "[Enabled].background",d.get("seaGlassLightBackground"));
  d.put(p + "[Enabled+Focused].background",d.get("seaGlassLightBackground"));
  d.put(p + "[Enabled+Focused].backgroundPainter",new LazyPainter(c,TreeCellPainter.Which.BACKGROUND_ENABLED_FOCUSED));
  d.put(p + "[Enabled+Selected].textForeground",Color.WHITE);
  d.put(p + "[Enabled+Selected].backgroundPainter",new LazyPainter(c,TreeCellPainter.Which.BACKGROUND_ENABLED_SELECTED));
  d.put(p + "[Focused+Selected].textForeground",Color.WHITE);
  d.put(p + "[Focused+Selected].backgroundPainter",new LazyPainter(c,TreeCellPainter.Which.BACKGROUND_SELECTED_FOCUSED));
  p="Tree:\"Tree.cellRenderer\"";
  d.put(p + ".font",new FontUIResource("SansSerif",Font.PLAIN,13));
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put(p + "[Disabled].textForeground",getDerivedColor("seaGlassDisabledText",0,0,0,0,true));
  p="\"Tree.cellEditor\"";
  c=PAINTER_PREFIX + "TreeCellEditorPainter";
  d.put(p + ".font",new FontUIResource("SansSerif",Font.PLAIN,13));
  d.put(p + ".contentMargins",new InsetsUIResource(2,5,2,5));
  d.put(p + ".opaque",Boolean.TRUE);
  d.put(p + ".background",d.get("control"));
  d.put(p + "[Disabled].textForeground",d.get("seaGlassDisabledText"));
  d.put(p + "[Selected].textForeground",d.get("seaGlassSelectedText"));
  d.put(p + "[Selected].textBackground",new ColorUIResource((Color)d.get("seaGlassSelection")));
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,TreeCellEditorPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[Enabled+Focused].backgroundPainter",new LazyPainter(c,TreeCellEditorPainter.Which.BACKGROUND_ENABLED_FOCUSED));
}

private void defineTrees ( UIDefaults d ) { String p = "Tree" ; String c = PAINTER_PREFIX + "TreePainter" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + ".opaque" , Boolean . TRUE ) ; d . put ( p + ".textForeground" , d . get ( "text" ) ) ; d . put ( p + ".textBackground" , d . get ( "seaGlassLightBackground" ) ) ; d . put ( p + ".background" , d . get ( "seaGlassLightBackground" ) ) ; d . put ( p + ".rendererFillBackground" , Boolean . FALSE ) ; d . put ( p + ".leftChildIndent" , new Integer ( 12 ) ) ; d . put ( p + ".rightChildIndent" , new Integer ( 8 ) ) ; d . put ( p + ".drawHorizontalLines" , Boolean . FALSE ) ; d . put ( p + ".drawVerticalLines" , Boolean . FALSE ) ; d . put ( p + ".showsRootHandles" , Boolean . FALSE ) ; d . put ( p + ".rendererUseTreeColors" , Boolean . TRUE ) ; d . put ( p + ".repaintWholeRow" , Boolean . TRUE ) ; d . put ( p + ".rowHeight" , new Integer ( 0 ) ) ; d . put ( p + ".rendererMargins" , new InsetsUIResource ( 2 , 5 , 1 , 5 ) ) ; d . put ( p + ".selectionForeground" , d . get ( "seaGlassSelectedText" ) ) ; d . put ( p + ".selectionBackground" , d . get ( "seaGlassSelectionBackground" ) ) ; d . put ( p + ".dropLineColor" , d . get ( "seaGlassFocus" ) ) ; d . put ( p + "[Enabled].collapsedIconPainter" , new LazyPainter ( c , TreePainter . Which . COLLAPSEDICON_ENABLED ) ) ; d . put ( p + "[Enabled+Selected].collapsedIconPainter" , new LazyPainter ( c , TreePainter . Which . COLLAPSEDICON_ENABLED_SELECTED ) ) ; d . put ( p + "[Enabled].expandedIconPainter" , new LazyPainter ( c , TreePainter . Which . EXPANDEDICON_ENABLED ) ) ; d . put ( p + "[Enabled+Selected].expandedIconPainter" , new LazyPainter ( c , TreePainter . Which . EXPANDEDICON_ENABLED_SELECTED ) ) ; d . put ( p + ".collapsedIcon" , new SeaGlassIcon ( p , "collapsedIconPainter" , 7 , 7 ) ) ; d . put ( p + ".expandedIcon" , new SeaGlassIcon ( p , "expandedIconPainter" , 7 , 7 ) ) ; d . put ( p + ".leafIcon" , null ) ; d . put ( p + ".closedIcon" , null ) ; d . put ( p + ".openIcon" , null ) ; p = "Tree:TreeCell" ; c = PAINTER_PREFIX + "TreeCellPainter" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + "[Enabled].background" , d . get ( "seaGlassLightBackground" ) ) ; d . put ( p + "[Enabled+Focused].background" , d . get ( "seaGlassLightBackground" ) ) ; d . put ( p + "[Enabled+Focused].backgroundPainter" , new LazyPainter ( c , TreeCellPainter . Which . BACKGROUND_ENABLED_FOCUSED ) ) ; d . put ( p + "[Enabled+Selected].textForeground" , Color . WHITE ) ; d . put ( p + "[Enabled+Selected].backgroundPainter" , new LazyPainter ( c , TreeCellPainter . Which . BACKGROUND_ENABLED_SELECTED ) ) ; d . put ( p + "[Focused+Selected].textForeground" , Color . WHITE ) ; d . put ( p + "[Focused+Selected].backgroundPainter" , new LazyPainter ( c , TreeCellPainter . Which . BACKGROUND_SELECTED_FOCUSED ) ) ; p = "Tree:\"Tree.cellRenderer\"" ; d . put ( p + ".font" , new FontUIResource ( "SansSerif" , Font . PLAIN , 13 ) ) ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + "[Disabled].textForeground" , getDerivedColor ( "seaGlassDisabledText" , 0 , 0 , 0 , 0 , true ) ) ; p = "\"Tree.cellEditor\"" ; c = PAINTER_PREFIX + "TreeCellEditorPainter" ; d . put ( p + ".font" , new FontUIResource ( "SansSerif" , Font . PLAIN , 13 ) ) ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 2 , 5 , 2 , 5 ) ) ; d . put ( p + ".opaque" , Boolean . TRUE ) ; d . put ( p + ".background" , d . get ( "control" ) ) ; d . put ( p + "[Disabled].textForeground" , d . get ( "seaGlassDisabledText" ) ) ; d . put ( p + "[Selected].textForeground" , d . get ( "seaGlassSelectedText" ) ) ; d . put ( p + "[Selected].textBackground" , new ColorUIResource ( ( Color ) d . get ( "seaGlassSelection" ) ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , TreeCellEditorPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Enabled+Focused].backgroundPainter" , new LazyPainter ( c , TreeCellEditorPainter . Which . BACKGROUND_ENABLED_FOCUSED ) ) ; }
initialize the tree settings .
