private void defineSliders(UIDefaults d){
  d.put("sliderTrackBorderBase",new Color(0x709ad0));
  d.put("sliderTrackInteriorBase",Color.WHITE);
  String p="Slider";
  d.put(p + ".States","Enabled,MouseOver,Pressed,Disabled,Focused,Selected,ArrowShape");
  d.put(p + ".ArrowShape",new SliderArrowShapeState());
  d.put(p + ".thumbWidth",new Integer(17));
  d.put(p + ".thumbHeight",new Integer(20));
  d.put(p + ".trackBorder",new Integer(0));
  d.put(p + ".trackHeight",new Integer(5));
  d.put(p + ".tickColor",new Color(0x5b7ea4));
  d.put(p + "[Disabled].tickColor",getDerivedColor("seaGlassDisabledText",0,0,0,0,true));
  d.put(p + ".font",new DerivedFont("defaultFont",0.769f,null,null));
  d.put(p + ".paintValue",Boolean.FALSE);
  p="Slider:SliderThumb";
  String c=PAINTER_PREFIX + "SliderThumbPainter";
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put(p + ".States","Enabled,MouseOver,Pressed,Disabled,Focused,Selected,ArrowShape");
  d.put(p + ".ArrowShape",new SliderArrowShapeState());
  d.put(p + "[Disabled].backgroundPainter",new LazyPainter(c,SliderThumbPainter.Which.BACKGROUND_DISABLED));
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,SliderThumbPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[Focused].backgroundPainter",new LazyPainter(c,SliderThumbPainter.Which.BACKGROUND_FOCUSED));
  d.put(p + "[Focused+MouseOver].backgroundPainter",new LazyPainter(c,SliderThumbPainter.Which.BACKGROUND_FOCUSED_MOUSEOVER));
  d.put(p + "[Focused+Pressed].backgroundPainter",new LazyPainter(c,SliderThumbPainter.Which.BACKGROUND_FOCUSED_PRESSED));
  d.put(p + "[MouseOver].backgroundPainter",new LazyPainter(c,SliderThumbPainter.Which.BACKGROUND_MOUSEOVER));
  d.put(p + "[Pressed].backgroundPainter",new LazyPainter(c,SliderThumbPainter.Which.BACKGROUND_PRESSED));
  d.put(p + "[ArrowShape+Enabled].backgroundPainter",new LazyPainter(c,SliderThumbPainter.Which.BACKGROUND_ENABLED_ARROWSHAPE));
  d.put(p + "[ArrowShape+Disabled].backgroundPainter",new LazyPainter(c,SliderThumbPainter.Which.BACKGROUND_DISABLED_ARROWSHAPE));
  d.put(p + "[ArrowShape+MouseOver].backgroundPainter",new LazyPainter(c,SliderThumbPainter.Which.BACKGROUND_MOUSEOVER_ARROWSHAPE));
  d.put(p + "[ArrowShape+Pressed].backgroundPainter",new LazyPainter(c,SliderThumbPainter.Which.BACKGROUND_PRESSED_ARROWSHAPE));
  d.put(p + "[ArrowShape+Focused].backgroundPainter",new LazyPainter(c,SliderThumbPainter.Which.BACKGROUND_FOCUSED_ARROWSHAPE));
  d.put(p + "[ArrowShape+Focused+MouseOver].backgroundPainter",new LazyPainter(c,SliderThumbPainter.Which.BACKGROUND_FOCUSED_MOUSEOVER_ARROWSHAPE));
  d.put(p + "[ArrowShape+Focused+Pressed].backgroundPainter",new LazyPainter(c,SliderThumbPainter.Which.BACKGROUND_FOCUSED_PRESSED_ARROWSHAPE));
  p="Slider:SliderTrack";
  c=PAINTER_PREFIX + "SliderTrackPainter";
  d.put(p + ".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put(p + ".States","Enabled,MouseOver,Pressed,Disabled,Focused,Selected,ArrowShape");
  d.put(p + ".ArrowShape",new SliderArrowShapeState());
  d.put(p + "[Disabled].backgroundPainter",new LazyPainter(c,SliderTrackPainter.Which.BACKGROUND_DISABLED));
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,SliderTrackPainter.Which.BACKGROUND_ENABLED));
}

private void defineSliders ( UIDefaults d ) { d . put ( "sliderTrackBorderBase" , new Color ( 0x709ad0 ) ) ; d . put ( "sliderTrackInteriorBase" , Color . WHITE ) ; String p = "Slider" ; d . put ( p + ".States" , "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,ArrowShape" ) ; d . put ( p + ".ArrowShape" , new SliderArrowShapeState ( ) ) ; d . put ( p + ".thumbWidth" , new Integer ( 17 ) ) ; d . put ( p + ".thumbHeight" , new Integer ( 20 ) ) ; d . put ( p + ".trackBorder" , new Integer ( 0 ) ) ; d . put ( p + ".trackHeight" , new Integer ( 5 ) ) ; d . put ( p + ".tickColor" , new Color ( 0x5b7ea4 ) ) ; d . put ( p + "[Disabled].tickColor" , getDerivedColor ( "seaGlassDisabledText" , 0 , 0 , 0 , 0 , true ) ) ; d . put ( p + ".font" , new DerivedFont ( "defaultFont" , 0.769f , null , null ) ) ; d . put ( p + ".paintValue" , Boolean . FALSE ) ; p = "Slider:SliderThumb" ; String c = PAINTER_PREFIX + "SliderThumbPainter" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + ".States" , "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,ArrowShape" ) ; d . put ( p + ".ArrowShape" , new SliderArrowShapeState ( ) ) ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , SliderThumbPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , SliderThumbPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Focused].backgroundPainter" , new LazyPainter ( c , SliderThumbPainter . Which . BACKGROUND_FOCUSED ) ) ; d . put ( p + "[Focused+MouseOver].backgroundPainter" , new LazyPainter ( c , SliderThumbPainter . Which . BACKGROUND_FOCUSED_MOUSEOVER ) ) ; d . put ( p + "[Focused+Pressed].backgroundPainter" , new LazyPainter ( c , SliderThumbPainter . Which . BACKGROUND_FOCUSED_PRESSED ) ) ; d . put ( p + "[MouseOver].backgroundPainter" , new LazyPainter ( c , SliderThumbPainter . Which . BACKGROUND_MOUSEOVER ) ) ; d . put ( p + "[Pressed].backgroundPainter" , new LazyPainter ( c , SliderThumbPainter . Which . BACKGROUND_PRESSED ) ) ; d . put ( p + "[ArrowShape+Enabled].backgroundPainter" , new LazyPainter ( c , SliderThumbPainter . Which . BACKGROUND_ENABLED_ARROWSHAPE ) ) ; d . put ( p + "[ArrowShape+Disabled].backgroundPainter" , new LazyPainter ( c , SliderThumbPainter . Which . BACKGROUND_DISABLED_ARROWSHAPE ) ) ; d . put ( p + "[ArrowShape+MouseOver].backgroundPainter" , new LazyPainter ( c , SliderThumbPainter . Which . BACKGROUND_MOUSEOVER_ARROWSHAPE ) ) ; d . put ( p + "[ArrowShape+Pressed].backgroundPainter" , new LazyPainter ( c , SliderThumbPainter . Which . BACKGROUND_PRESSED_ARROWSHAPE ) ) ; d . put ( p + "[ArrowShape+Focused].backgroundPainter" , new LazyPainter ( c , SliderThumbPainter . Which . BACKGROUND_FOCUSED_ARROWSHAPE ) ) ; d . put ( p + "[ArrowShape+Focused+MouseOver].backgroundPainter" , new LazyPainter ( c , SliderThumbPainter . Which . BACKGROUND_FOCUSED_MOUSEOVER_ARROWSHAPE ) ) ; d . put ( p + "[ArrowShape+Focused+Pressed].backgroundPainter" , new LazyPainter ( c , SliderThumbPainter . Which . BACKGROUND_FOCUSED_PRESSED_ARROWSHAPE ) ) ; p = "Slider:SliderTrack" ; c = PAINTER_PREFIX + "SliderTrackPainter" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( p + ".States" , "Enabled,MouseOver,Pressed,Disabled,Focused,Selected,ArrowShape" ) ; d . put ( p + ".ArrowShape" , new SliderArrowShapeState ( ) ) ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , SliderTrackPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , SliderTrackPainter . Which . BACKGROUND_ENABLED ) ) ; }
initialize the slider settings .
