private void defineSpinners(UIDefaults d){
  d.put("spinnerNextBorderBottomEnabled",new Color(0x4779bf));
  d.put("spinnerNextBorderBottomPressed",new Color(0x4879bf));
  d.put("spinnerNextInteriorBottomEnabled",new Color(0x85abcf));
  d.put("spinnerNextInteriorBottomPressed",new Color(0x6e92b6));
  d.put("spinnerPrevBorderTopEnabled",new Color(0x4778bf));
  d.put("spinnerPrevInteriorTopEnabled",new Color(0x81aed4));
  d.put("spinnerPrevInteriorBottomEnabled",new Color(0xaad4f1));
  d.put("spinnerPrevInteriorPressedTop",new Color(0x6c91b8));
  d.put("spinnerPrevInteriorPressedBottom",new Color(0x9cc3de));
  d.put("spinnerPrevTopLineEnabled",new Color(0xacc8e0));
  d.put("spinnerPrevTopLinePressed",new Color(0x9eb6cf));
  d.put("Spinner.contentMargins",new InsetsUIResource(4,6,4,6));
  d.put("Spinner:\"Spinner.editor\".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put("Spinner:\"Spinner.textField\".contentMargins",new InsetsUIResource(4,6,4,0));
  d.put("Spinner:\"Spinner.formattedTextField\".contentMargins",new InsetsUIResource(4,6,4,2));
  String c=PAINTER_PREFIX + "SpinnerFormattedTextFieldPainter";
  String p="Spinner:Panel:\"Spinner.formattedTextField\"";
  d.put(p + ".contentMargins",new InsetsUIResource(3,10,3,2));
  d.put(p + ".background",Color.WHITE);
  d.put(p + "[Selected].textForeground",Color.WHITE);
  d.put(p + "[Selected].textBackground",d.get("seaGlassSelection"));
  d.put(p + "[Disabled].textForeground",getDerivedColor("seaGlassDisabledText",0.0f,0.0f,0.0f,0,true));
  d.put(p + "[Disabled].backgroundPainter",new LazyPainter(c,SpinnerFormattedTextFieldPainter.Which.BACKGROUND_DISABLED));
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,SpinnerFormattedTextFieldPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[Focused].backgroundPainter",new LazyPainter(c,SpinnerFormattedTextFieldPainter.Which.BACKGROUND_FOCUSED));
  d.put(p + "[Selected].backgroundPainter",new LazyPainter(c,SpinnerFormattedTextFieldPainter.Which.BACKGROUND_SELECTED));
  d.put(p + "[Focused+Selected].backgroundPainter",new LazyPainter(c,SpinnerFormattedTextFieldPainter.Which.BACKGROUND_SELECTED_FOCUSED));
  c=PAINTER_PREFIX + "SpinnerPreviousButtonPainter";
  p="Spinner:\"Spinner.previousButton\"";
  d.put(p + ".size",new Integer(22));
  d.put(p + ".States","Disabled,Enabled,Focused,Pressed");
  d.put(p + "[Disabled].backgroundPainter",new LazyPainter(c,SpinnerPreviousButtonPainter.Which.BACKGROUND_DISABLED));
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,SpinnerPreviousButtonPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[Focused].backgroundPainter",new LazyPainter(c,SpinnerPreviousButtonPainter.Which.BACKGROUND_FOCUSED));
  d.put(p + "[Focused+Pressed].backgroundPainter",new LazyPainter(c,SpinnerPreviousButtonPainter.Which.BACKGROUND_PRESSED_FOCUSED));
  d.put(p + "[Pressed].backgroundPainter",new LazyPainter(c,SpinnerPreviousButtonPainter.Which.BACKGROUND_PRESSED));
  d.put(p + "[Disabled].foregroundPainter",new LazyPainter(c,SpinnerPreviousButtonPainter.Which.FOREGROUND_DISABLED));
  d.put(p + "[Enabled].foregroundPainter",new LazyPainter(c,SpinnerPreviousButtonPainter.Which.FOREGROUND_ENABLED));
  d.put(p + "[Focused].foregroundPainter",new LazyPainter(c,SpinnerPreviousButtonPainter.Which.FOREGROUND_FOCUSED));
  d.put(p + "[Focused+Pressed].foregroundPainter",new LazyPainter(c,SpinnerPreviousButtonPainter.Which.FOREGROUND_PRESSED_FOCUSED));
  d.put(p + "[Pressed].foregroundPainter",new LazyPainter(c,SpinnerPreviousButtonPainter.Which.FOREGROUND_PRESSED));
  c=PAINTER_PREFIX + "SpinnerNextButtonPainter";
  p="Spinner:\"Spinner.nextButton\"";
  d.put(p + ".size",new Integer(22));
  d.put(p + ".States","Disabled,Enabled,Focused,Pressed");
  d.put(p + "[Disabled].backgroundPainter",new LazyPainter(c,SpinnerNextButtonPainter.Which.BACKGROUND_DISABLED));
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,SpinnerNextButtonPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[Focused].backgroundPainter",new LazyPainter(c,SpinnerNextButtonPainter.Which.BACKGROUND_FOCUSED));
  d.put(p + "[Focused+Pressed].backgroundPainter",new LazyPainter(c,SpinnerNextButtonPainter.Which.BACKGROUND_PRESSED_FOCUSED));
  d.put(p + "[Pressed].backgroundPainter",new LazyPainter(c,SpinnerNextButtonPainter.Which.BACKGROUND_PRESSED));
  d.put(p + "[Disabled].foregroundPainter",new LazyPainter(c,SpinnerNextButtonPainter.Which.FOREGROUND_DISABLED));
  d.put(p + "[Enabled].foregroundPainter",new LazyPainter(c,SpinnerNextButtonPainter.Which.FOREGROUND_ENABLED));
  d.put(p + "[Focused].foregroundPainter",new LazyPainter(c,SpinnerNextButtonPainter.Which.FOREGROUND_FOCUSED));
  d.put(p + "[Focused+Pressed].foregroundPainter",new LazyPainter(c,SpinnerNextButtonPainter.Which.FOREGROUND_PRESSED_FOCUSED));
  d.put(p + "[Pressed].foregroundPainter",new LazyPainter(c,SpinnerNextButtonPainter.Which.FOREGROUND_PRESSED));
}

private void defineSpinners ( UIDefaults d ) { d . put ( "spinnerNextBorderBottomEnabled" , new Color ( 0x4779bf ) ) ; d . put ( "spinnerNextBorderBottomPressed" , new Color ( 0x4879bf ) ) ; d . put ( "spinnerNextInteriorBottomEnabled" , new Color ( 0x85abcf ) ) ; d . put ( "spinnerNextInteriorBottomPressed" , new Color ( 0x6e92b6 ) ) ; d . put ( "spinnerPrevBorderTopEnabled" , new Color ( 0x4778bf ) ) ; d . put ( "spinnerPrevInteriorTopEnabled" , new Color ( 0x81aed4 ) ) ; d . put ( "spinnerPrevInteriorBottomEnabled" , new Color ( 0xaad4f1 ) ) ; d . put ( "spinnerPrevInteriorPressedTop" , new Color ( 0x6c91b8 ) ) ; d . put ( "spinnerPrevInteriorPressedBottom" , new Color ( 0x9cc3de ) ) ; d . put ( "spinnerPrevTopLineEnabled" , new Color ( 0xacc8e0 ) ) ; d . put ( "spinnerPrevTopLinePressed" , new Color ( 0x9eb6cf ) ) ; d . put ( "Spinner.contentMargins" , new InsetsUIResource ( 4 , 6 , 4 , 6 ) ) ; d . put ( "Spinner:\"Spinner.editor\".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( "Spinner:\"Spinner.textField\".contentMargins" , new InsetsUIResource ( 4 , 6 , 4 , 0 ) ) ; d . put ( "Spinner:\"Spinner.formattedTextField\".contentMargins" , new InsetsUIResource ( 4 , 6 , 4 , 2 ) ) ; String c = PAINTER_PREFIX + "SpinnerFormattedTextFieldPainter" ; String p = "Spinner:Panel:\"Spinner.formattedTextField\"" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 3 , 10 , 3 , 2 ) ) ; d . put ( p + ".background" , Color . WHITE ) ; d . put ( p + "[Selected].textForeground" , Color . WHITE ) ; d . put ( p + "[Selected].textBackground" , d . get ( "seaGlassSelection" ) ) ; d . put ( p + "[Disabled].textForeground" , getDerivedColor ( "seaGlassDisabledText" , 0.0f , 0.0f , 0.0f , 0 , true ) ) ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , SpinnerFormattedTextFieldPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , SpinnerFormattedTextFieldPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Focused].backgroundPainter" , new LazyPainter ( c , SpinnerFormattedTextFieldPainter . Which . BACKGROUND_FOCUSED ) ) ; d . put ( p + "[Selected].backgroundPainter" , new LazyPainter ( c , SpinnerFormattedTextFieldPainter . Which . BACKGROUND_SELECTED ) ) ; d . put ( p + "[Focused+Selected].backgroundPainter" , new LazyPainter ( c , SpinnerFormattedTextFieldPainter . Which . BACKGROUND_SELECTED_FOCUSED ) ) ; c = PAINTER_PREFIX + "SpinnerPreviousButtonPainter" ; p = "Spinner:\"Spinner.previousButton\"" ; d . put ( p + ".size" , new Integer ( 22 ) ) ; d . put ( p + ".States" , "Disabled,Enabled,Focused,Pressed" ) ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , SpinnerPreviousButtonPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , SpinnerPreviousButtonPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Focused].backgroundPainter" , new LazyPainter ( c , SpinnerPreviousButtonPainter . Which . BACKGROUND_FOCUSED ) ) ; d . put ( p + "[Focused+Pressed].backgroundPainter" , new LazyPainter ( c , SpinnerPreviousButtonPainter . Which . BACKGROUND_PRESSED_FOCUSED ) ) ; d . put ( p + "[Pressed].backgroundPainter" , new LazyPainter ( c , SpinnerPreviousButtonPainter . Which . BACKGROUND_PRESSED ) ) ; d . put ( p + "[Disabled].foregroundPainter" , new LazyPainter ( c , SpinnerPreviousButtonPainter . Which . FOREGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].foregroundPainter" , new LazyPainter ( c , SpinnerPreviousButtonPainter . Which . FOREGROUND_ENABLED ) ) ; d . put ( p + "[Focused].foregroundPainter" , new LazyPainter ( c , SpinnerPreviousButtonPainter . Which . FOREGROUND_FOCUSED ) ) ; d . put ( p + "[Focused+Pressed].foregroundPainter" , new LazyPainter ( c , SpinnerPreviousButtonPainter . Which . FOREGROUND_PRESSED_FOCUSED ) ) ; d . put ( p + "[Pressed].foregroundPainter" , new LazyPainter ( c , SpinnerPreviousButtonPainter . Which . FOREGROUND_PRESSED ) ) ; c = PAINTER_PREFIX + "SpinnerNextButtonPainter" ; p = "Spinner:\"Spinner.nextButton\"" ; d . put ( p + ".size" , new Integer ( 22 ) ) ; d . put ( p + ".States" , "Disabled,Enabled,Focused,Pressed" ) ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , SpinnerNextButtonPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , SpinnerNextButtonPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Focused].backgroundPainter" , new LazyPainter ( c , SpinnerNextButtonPainter . Which . BACKGROUND_FOCUSED ) ) ; d . put ( p + "[Focused+Pressed].backgroundPainter" , new LazyPainter ( c , SpinnerNextButtonPainter . Which . BACKGROUND_PRESSED_FOCUSED ) ) ; d . put ( p + "[Pressed].backgroundPainter" , new LazyPainter ( c , SpinnerNextButtonPainter . Which . BACKGROUND_PRESSED ) ) ; d . put ( p + "[Disabled].foregroundPainter" , new LazyPainter ( c , SpinnerNextButtonPainter . Which . FOREGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].foregroundPainter" , new LazyPainter ( c , SpinnerNextButtonPainter . Which . FOREGROUND_ENABLED ) ) ; d . put ( p + "[Focused].foregroundPainter" , new LazyPainter ( c , SpinnerNextButtonPainter . Which . FOREGROUND_FOCUSED ) ) ; d . put ( p + "[Focused+Pressed].foregroundPainter" , new LazyPainter ( c , SpinnerNextButtonPainter . Which . FOREGROUND_PRESSED_FOCUSED ) ) ; d . put ( p + "[Pressed].foregroundPainter" , new LazyPainter ( c , SpinnerNextButtonPainter . Which . FOREGROUND_PRESSED ) ) ; }
initialize the spinner ui settings ;
