private void defineSplitPanes(UIDefaults d){
  d.put("splitPaneDividerBackgroundOuter",new Color(0xd9d9d9));
  String p="SplitPane";
  d.put(p + ".contentMargins",new InsetsUIResource(1,1,1,1));
  d.put(p + ".States","Enabled,MouseOver,Pressed,Disabled,Focused,Selected,Vertical");
  d.put(p + ".Vertical",new SplitPaneVerticalState());
  d.put(p + ".size",new Integer(11));
  d.put(p + ".dividerSize",new Integer(11));
  d.put(p + ".centerOneTouchButtons",Boolean.TRUE);
  d.put(p + ".oneTouchButtonOffset",new Integer(20));
  d.put(p + ".oneTouchButtonVOffset",new Integer(3));
  d.put(p + ".oneTouchExpandable",Boolean.FALSE);
  d.put(p + ".continuousLayout",Boolean.TRUE);
  String c=PAINTER_PREFIX + "SplitPaneDividerPainter";
  p="SplitPane:SplitPaneDivider";
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put(p + ".States","Enabled,MouseOver,Pressed,Disabled,Focused,Selected,Vertical");
  d.put(p + ".Vertical",new SplitPaneDividerVerticalState());
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,SplitPaneDividerPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[Focused].backgroundPainter",new LazyPainter(c,SplitPaneDividerPainter.Which.BACKGROUND_FOCUSED));
  d.put(p + "[Enabled].foregroundPainter",new LazyPainter(c,SplitPaneDividerPainter.Which.FOREGROUND_ENABLED));
  d.put(p + "[Focused].foregroundPainter",new LazyPainter(c,SplitPaneDividerPainter.Which.FOREGROUND_FOCUSED));
  d.put(p + "[Enabled+Vertical].foregroundPainter",new LazyPainter(c,SplitPaneDividerPainter.Which.FOREGROUND_ENABLED_VERTICAL));
  d.put(p + "[Focused+Vertical].foregroundPainter",new LazyPainter(c,SplitPaneDividerPainter.Which.FOREGROUND_FOCUSED_VERTICAL));
}

private void defineSplitPanes ( UIDefaults d ) { d . put ( "splitPaneDividerBackgroundOuter" , new Color ( 0xd9d9d9 ) ) ; String p = "SplitPane" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 1 , 1 , 1 , 1 ) ) ; d . put ( p + ".States" , "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,Vertical" ) ; d . put ( p + ".Vertical" , new SplitPaneVerticalState ( ) ) ; d . put ( p + ".size" , new Integer ( 11 ) ) ; d . put ( p + ".dividerSize" , new Integer ( 11 ) ) ; d . put ( p + ".centerOneTouchButtons" , Boolean . TRUE ) ; d . put ( p + ".oneTouchButtonOffset" , new Integer ( 20 ) ) ; d . put ( p + ".oneTouchButtonVOffset" , new Integer ( 3 ) ) ; d . put ( p + ".oneTouchExpandable" , Boolean . FALSE ) ; d . put ( p + ".continuousLayout" , Boolean . TRUE ) ; String c = PAINTER_PREFIX + "SplitPaneDividerPainter" ; p = "SplitPane:SplitPaneDivider" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + ".States" , "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,Vertical" ) ; d . put ( p + ".Vertical" , new SplitPaneDividerVerticalState ( ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , SplitPaneDividerPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Focused].backgroundPainter" , new LazyPainter ( c , SplitPaneDividerPainter . Which . BACKGROUND_FOCUSED ) ) ; d . put ( p + "[Enabled].foregroundPainter" , new LazyPainter ( c , SplitPaneDividerPainter . Which . FOREGROUND_ENABLED ) ) ; d . put ( p + "[Focused].foregroundPainter" , new LazyPainter ( c , SplitPaneDividerPainter . Which . FOREGROUND_FOCUSED ) ) ; d . put ( p + "[Enabled+Vertical].foregroundPainter" , new LazyPainter ( c , SplitPaneDividerPainter . Which . FOREGROUND_ENABLED_VERTICAL ) ) ; d . put ( p + "[Focused+Vertical].foregroundPainter" , new LazyPainter ( c , SplitPaneDividerPainter . Which . FOREGROUND_FOCUSED_VERTICAL ) ) ; }
initialize the split pane ui settings .
