private void defineScrollBars(UIDefaults d){
  d.put("scrollBarThumbBorderBasePressed",new Color(0x4879bf));
  d.put("scrollBarThumbInteriorBasePressed",new Color(0x82a8ca));
  d.put("scrollBarButtonBase",Color.WHITE);
  d.put("scrollBarButtonBasePressed",new Color(0xa1bfdb));
  d.put("scrollBarTrackBackgroundBase",Color.WHITE);
  d.put("scrollBarTrackGradientBase",d.get("seaGlassTransparent"));
  d.put("ScrollBar.incrementButtonGap",new Integer(-7));
  d.put("ScrollBar.decrementButtonGap",new Integer(-7));
  d.put("ScrollBar.capSize",new Integer(11));
  d.put("ScrollBar.contentMargins",new InsetsUIResource(0,0,0,0));
  d.put("ScrollBar.thumbHeight",new Integer(15));
  d.put("ScrollBar.minimumThumbSize",new DimensionUIResource(29,29));
  d.put("ScrollBar.maximumThumbSize",new DimensionUIResource(1000,1000));
  String c=PAINTER_PREFIX + "ScrollBarButtonPainter";
  String p="ScrollBar:\"ScrollBar.button\"";
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put(p + ".size",new Integer(22));
  d.put(p + ".States","Enabled,Pressed,MouseOver,IncreaseButton,Disabled,ButtonsTogether");
  d.put(p + ".IncreaseButton",new ScrollBarButtonIsIncreaseButtonState());
  d.put(p + ".ButtonsTogether",new ScrollBarButtonsTogetherState());
  d.put(p + ".foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_ENABLED));
  d.put(p + "[Enabled].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_ENABLED));
  d.put(p + "[Disabled].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_DISABLED));
  d.put(p + "[MouseOver].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_ENABLED));
  d.put(p + "[Pressed].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_PRESSED));
  d.put(p + "[MouseOver+Pressed].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_PRESSED));
  d.put(p + "[IncreaseButton+Enabled].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_INCREASE_ENABLED));
  d.put(p + "[MouseOver+IncreaseButton].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_INCREASE_ENABLED));
  d.put(p + "[IncreaseButton+Disabled].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_INCREASE_DISABLED));
  d.put(p + "[IncreaseButton+Pressed].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_INCREASE_PRESSED));
  d.put(p + "[MouseOver+IncreaseButton+Pressed].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_INCREASE_PRESSED));
  d.put(p + "[Enabled+ButtonsTogether].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_ENABLED_TOGETHER));
  d.put(p + "[Disabled+ButtonsTogether].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_DISABLED_TOGETHER));
  d.put(p + "[Pressed+ButtonsTogether].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_PRESSED_TOGETHER));
  d.put(p + "[IncreaseButton+Enabled+ButtonsTogether].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_INCREASE_ENABLED_TOGETHER));
  d.put(p + "[IncreaseButton+Disabled+ButtonsTogether].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_INCREASE_DISABLED_TOGETHER));
  d.put(p + "[IncreaseButton+Pressed+ButtonsTogether].foregroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_INCREASE_PRESSED_TOGETHER));
  c=PAINTER_PREFIX + "ScrollBarThumbPainter";
  p="ScrollBar:ScrollBarThumb";
  d.put(p + ".States","Enabled,Pressed,MouseOver,Disabled");
  d.put(p + "[Disabled].backgroundPainter",new LazyPainter(c,ScrollBarThumbPainter.Which.BACKGROUND_DISABLED));
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,ScrollBarThumbPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[MouseOver].backgroundPainter",new LazyPainter(c,ScrollBarThumbPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[Pressed].backgroundPainter",new LazyPainter(c,ScrollBarThumbPainter.Which.BACKGROUND_PRESSED));
  d.put(p + "[MouseOver+Pressed].backgroundPainter",new LazyPainter(c,ScrollBarThumbPainter.Which.BACKGROUND_PRESSED));
  c=PAINTER_PREFIX + "ScrollBarTrackPainter";
  p="ScrollBar:ScrollBarTrack";
  d.put(p + ".States","Enabled,Disabled");
  d.put(p + "[Disabled].backgroundPainter",new LazyPainter(c,ScrollBarTrackPainter.Which.BACKGROUND_DISABLED));
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,ScrollBarTrackPainter.Which.BACKGROUND_ENABLED));
  c=PAINTER_PREFIX + "ScrollBarButtonPainter";
  p="ScrollBar:ScrollBarCap";
  d.put(p + ".States","Enabled,Disabled");
  d.put(p + "[Disabled].backgroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_CAP));
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,ScrollBarButtonPainter.Which.FOREGROUND_CAP));
}

private void defineScrollBars ( UIDefaults d ) { d . put ( "scrollBarThumbBorderBasePressed" , new Color ( 0x4879bf ) ) ; d . put ( "scrollBarThumbInteriorBasePressed" , new Color ( 0x82a8ca ) ) ; d . put ( "scrollBarButtonBase" , Color . WHITE ) ; d . put ( "scrollBarButtonBasePressed" , new Color ( 0xa1bfdb ) ) ; d . put ( "scrollBarTrackBackgroundBase" , Color . WHITE ) ; d . put ( "scrollBarTrackGradientBase" , d . get ( "seaGlassTransparent" ) ) ; d . put ( "ScrollBar.incrementButtonGap" , new Integer ( - 7 ) ) ; d . put ( "ScrollBar.decrementButtonGap" , new Integer ( - 7 ) ) ; d . put ( "ScrollBar.capSize" , new Integer ( 11 ) ) ; d . put ( "ScrollBar.contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( "ScrollBar.thumbHeight" , new Integer ( 15 ) ) ; d . put ( "ScrollBar.minimumThumbSize" , new DimensionUIResource ( 29 , 29 ) ) ; d . put ( "ScrollBar.maximumThumbSize" , new DimensionUIResource ( 1000 , 1000 ) ) ; String c = PAINTER_PREFIX + "ScrollBarButtonPainter" ; String p = "ScrollBar:\"ScrollBar.button\"" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + ".size" , new Integer ( 22 ) ) ; d . put ( p + ".States" , "Enabled,Pressed,MouseOver,IncreaseButton,Disabled,ButtonsTogether" ) ; d . put ( p + ".IncreaseButton" , new ScrollBarButtonIsIncreaseButtonState ( ) ) ; d . put ( p + ".ButtonsTogether" , new ScrollBarButtonsTogetherState ( ) ) ; d . put ( p + ".foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_ENABLED ) ) ; d . put ( p + "[Enabled].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_ENABLED ) ) ; d . put ( p + "[Disabled].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_DISABLED ) ) ; d . put ( p + "[MouseOver].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_ENABLED ) ) ; d . put ( p + "[Pressed].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_PRESSED ) ) ; d . put ( p + "[MouseOver+Pressed].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_PRESSED ) ) ; d . put ( p + "[IncreaseButton+Enabled].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_INCREASE_ENABLED ) ) ; d . put ( p + "[MouseOver+IncreaseButton].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_INCREASE_ENABLED ) ) ; d . put ( p + "[IncreaseButton+Disabled].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_INCREASE_DISABLED ) ) ; d . put ( p + "[IncreaseButton+Pressed].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_INCREASE_PRESSED ) ) ; d . put ( p + "[MouseOver+IncreaseButton+Pressed].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_INCREASE_PRESSED ) ) ; d . put ( p + "[Enabled+ButtonsTogether].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_ENABLED_TOGETHER ) ) ; d . put ( p + "[Disabled+ButtonsTogether].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_DISABLED_TOGETHER ) ) ; d . put ( p + "[Pressed+ButtonsTogether].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_PRESSED_TOGETHER ) ) ; d . put ( p + "[IncreaseButton+Enabled+ButtonsTogether].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_INCREASE_ENABLED_TOGETHER ) ) ; d . put ( p + "[IncreaseButton+Disabled+ButtonsTogether].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_INCREASE_DISABLED_TOGETHER ) ) ; d . put ( p + "[IncreaseButton+Pressed+ButtonsTogether].foregroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_INCREASE_PRESSED_TOGETHER ) ) ; c = PAINTER_PREFIX + "ScrollBarThumbPainter" ; p = "ScrollBar:ScrollBarThumb" ; d . put ( p + ".States" , "Enabled,Pressed,MouseOver,Disabled" ) ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , ScrollBarThumbPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , ScrollBarThumbPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[MouseOver].backgroundPainter" , new LazyPainter ( c , ScrollBarThumbPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Pressed].backgroundPainter" , new LazyPainter ( c , ScrollBarThumbPainter . Which . BACKGROUND_PRESSED ) ) ; d . put ( p + "[MouseOver+Pressed].backgroundPainter" , new LazyPainter ( c , ScrollBarThumbPainter . Which . BACKGROUND_PRESSED ) ) ; c = PAINTER_PREFIX + "ScrollBarTrackPainter" ; p = "ScrollBar:ScrollBarTrack" ; d . put ( p + ".States" , "Enabled,Disabled" ) ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , ScrollBarTrackPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , ScrollBarTrackPainter . Which . BACKGROUND_ENABLED ) ) ; c = PAINTER_PREFIX + "ScrollBarButtonPainter" ; p = "ScrollBar:ScrollBarCap" ; d . put ( p + ".States" , "Enabled,Disabled" ) ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_CAP ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , ScrollBarButtonPainter . Which . FOREGROUND_CAP ) ) ; }
initialize the scroll bar ui settings .
