private void defineComboBoxes(UIDefaults d){
  d.put("ComboBox.contentMargins",new InsetsUIResource(0,0,0,0));
  d.put("ComboBox.forceOpaque",Boolean.TRUE);
  d.put("ComboBox.buttonWhenNotEditable",Boolean.TRUE);
  d.put("ComboBox.rendererUseListColors",Boolean.FALSE);
  d.put("ComboBox.pressedWhenPopupVisible",Boolean.TRUE);
  d.put("ComboBox.squareButton",Boolean.FALSE);
  d.put("ComboBox.popupInsets",new InsetsUIResource(-2,2,0,2));
  d.put("ComboBox.padding",new InsetsUIResource(2,2,2,2));
  d.put("ComboBox:\"ComboBox.arrowButton\".contentMargins",new InsetsUIResource(0,0,0,0));
  d.put("ComboBox:\"ComboBox.arrowButton\".size",new Integer(19));
  d.put("ComboBox:\"ComboBox.listRenderer\".contentMargins",new InsetsUIResource(2,4,2,4));
  d.put("ComboBox:\"ComboBox.listRenderer\".opaque",Boolean.TRUE);
  addColor(d,"ComboBox:\"ComboBox.listRenderer\".background","seaGlassLightBackground",0.0f,0.0f,0.0f,0);
  addColor(d,"ComboBox:\"ComboBox.listRenderer\"[Disabled].textForeground","seaGlassDisabledText",0.0f,0.0f,0.0f,0);
  addColor(d,"ComboBox:\"ComboBox.listRenderer\"[Selected].textForeground","seaGlassSelectedText",0.0f,0.0f,0.0f,0);
  addColor(d,"ComboBox:\"ComboBox.listRenderer\"[Selected].background","seaGlassSelectionBackground",0.0f,0.0f,0.0f,0);
  d.put("ComboBox:\"ComboBox.renderer\".contentMargins",new InsetsUIResource(2,4,2,4));
  addColor(d,"ComboBox:\"ComboBox.renderer\"[Disabled].textForeground","seaGlassDisabledText",0.0f,0.0f,0.0f,0);
  addColor(d,"ComboBox:\"ComboBox.renderer\"[Selected].textForeground","seaGlassSelectedText",0.0f,0.0f,0.0f,0);
  addColor(d,"ComboBox:\"ComboBox.renderer\"[Selected].background","seaGlassSelectionBackground",0.0f,0.0f,0.0f,0);
  d.put("\"ComboBox.scrollPane\".contentMargins",new InsetsUIResource(0,0,0,0));
  String p="ComboBox";
  d.put(p + ".States","Enabled,Pressed,Selected,Disabled,Focused,Editable");
  d.put(p + ".Editable",new ComboBoxEditableState());
  d.put(p + ":\"ComboBox.arrowButton\".Editable",new ComboBoxArrowButtonEditableState());
  String c=PAINTER_PREFIX + "ComboBoxPainter";
  d.put(p + "[Disabled].backgroundPainter",new LazyPainter(c,ComboBoxPainter.Which.BACKGROUND_DISABLED));
  d.put(p + "[Disabled+Pressed].backgroundPainter",new LazyPainter(c,ComboBoxPainter.Which.BACKGROUND_DISABLED_PRESSED));
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,ComboBoxPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[Focused].backgroundPainter",new LazyPainter(c,ComboBoxPainter.Which.BACKGROUND_FOCUSED));
  d.put(p + "[Focused+Pressed].backgroundPainter",new LazyPainter(c,ComboBoxPainter.Which.BACKGROUND_PRESSED_FOCUSED));
  d.put(p + "[Pressed].backgroundPainter",new LazyPainter(c,ComboBoxPainter.Which.BACKGROUND_PRESSED));
  d.put(p + "[Enabled+Selected].backgroundPainter",new LazyPainter(c,ComboBoxPainter.Which.BACKGROUND_ENABLED_SELECTED));
  d.put(p + "[Disabled+Editable].backgroundPainter",new LazyPainter(c,ComboBoxPainter.Which.BACKGROUND_DISABLED_EDITABLE));
  d.put(p + "[Editable+Enabled].backgroundPainter",new LazyPainter(c,ComboBoxPainter.Which.BACKGROUND_ENABLED_EDITABLE));
  d.put(p + "[Editable+Focused].backgroundPainter",new LazyPainter(c,ComboBoxPainter.Which.BACKGROUND_FOCUSED_EDITABLE));
  d.put(p + "[Editable+Pressed].backgroundPainter",new LazyPainter(c,ComboBoxPainter.Which.BACKGROUND_PRESSED_EDITABLE));
  c=PAINTER_PREFIX + "ComboBoxArrowButtonPainter";
  p="ComboBox:\"ComboBox.arrowButton\"";
  d.put(p + ".size",new Integer(22));
  d.put(p + ".States","Enabled,Pressed,Disabled,Editable");
  d.put(p + "[Disabled+Editable].backgroundPainter",new LazyPainter(c,ComboBoxArrowButtonPainter.Which.BACKGROUND_DISABLED));
  d.put(p + "[Editable+Enabled].backgroundPainter",new LazyPainter(c,ComboBoxArrowButtonPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[Editable+Pressed].backgroundPainter",new LazyPainter(c,ComboBoxArrowButtonPainter.Which.BACKGROUND_PRESSED));
  d.put(p + "[Editable+Selected].backgroundPainter",new LazyPainter(c,ComboBoxArrowButtonPainter.Which.BACKGROUND_SELECTED));
  d.put(p + "[Enabled].foregroundPainter",new LazyPainter(c,ComboBoxArrowButtonPainter.Which.FOREGROUND_ENABLED));
  d.put(p + "[Disabled].foregroundPainter",new LazyPainter(c,ComboBoxArrowButtonPainter.Which.FOREGROUND_DISABLED));
  d.put(p + "[Pressed].foregroundPainter",new LazyPainter(c,ComboBoxArrowButtonPainter.Which.FOREGROUND_PRESSED));
  d.put(p + "[Selected].foregroundPainter",new LazyPainter(c,ComboBoxArrowButtonPainter.Which.FOREGROUND_SELECTED));
  d.put(p + "[Editable].foregroundPainter",new LazyPainter(c,ComboBoxArrowButtonPainter.Which.FOREGROUND_ENABLED_EDITABLE));
  d.put(p + "[Editable+Disabled].foregroundPainter",new LazyPainter(c,ComboBoxArrowButtonPainter.Which.FOREGROUND_DISABLED_EDITABLE));
  c=PAINTER_PREFIX + "ComboBoxTextFieldPainter";
  p="ComboBox:\"ComboBox.textField\"";
  d.put(p + ".contentMargins",new InsetsUIResource(2,6,2,0));
  d.put(p + ".background",Color.WHITE);
  d.put(p + "[Disabled].textForeground",getDerivedColor("seaGlassDisabledText",0.0f,0.0f,0.0f,0,true));
  d.put(p + "[Disabled].backgroundPainter",new LazyPainter(c,ComboBoxTextFieldPainter.Which.BACKGROUND_DISABLED));
  d.put(p + "[Enabled].backgroundPainter",new LazyPainter(c,ComboBoxTextFieldPainter.Which.BACKGROUND_ENABLED));
  d.put(p + "[Selected].backgroundPainter",new LazyPainter(c,ComboBoxTextFieldPainter.Which.BACKGROUND_SELECTED));
}

private void defineComboBoxes ( UIDefaults d ) { d . put ( "ComboBox.contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( "ComboBox.forceOpaque" , Boolean . TRUE ) ; d . put ( "ComboBox.buttonWhenNotEditable" , Boolean . TRUE ) ; d . put ( "ComboBox.rendererUseListColors" , Boolean . FALSE ) ; d . put ( "ComboBox.pressedWhenPopupVisible" , Boolean . TRUE ) ; d . put ( "ComboBox.squareButton" , Boolean . FALSE ) ; d . put ( "ComboBox.popupInsets" , new InsetsUIResource ( - 2 , 2 , 0 , 2 ) ) ; d . put ( "ComboBox.padding" , new InsetsUIResource ( 2 , 2 , 2 , 2 ) ) ; d . put ( "ComboBox:\"ComboBox.arrowButton\".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; d . put ( "ComboBox:\"ComboBox.arrowButton\".size" , new Integer ( 19 ) ) ; d . put ( "ComboBox:\"ComboBox.listRenderer\".contentMargins" , new InsetsUIResource ( 2 , 4 , 2 , 4 ) ) ; d . put ( "ComboBox:\"ComboBox.listRenderer\".opaque" , Boolean . TRUE ) ; addColor ( d , "ComboBox:\"ComboBox.listRenderer\".background" , "seaGlassLightBackground" , 0.0f , 0.0f , 0.0f , 0 ) ; addColor ( d , "ComboBox:\"ComboBox.listRenderer\"[Disabled].textForeground" , "seaGlassDisabledText" , 0.0f , 0.0f , 0.0f , 0 ) ; addColor ( d , "ComboBox:\"ComboBox.listRenderer\"[Selected].textForeground" , "seaGlassSelectedText" , 0.0f , 0.0f , 0.0f , 0 ) ; addColor ( d , "ComboBox:\"ComboBox.listRenderer\"[Selected].background" , "seaGlassSelectionBackground" , 0.0f , 0.0f , 0.0f , 0 ) ; d . put ( "ComboBox:\"ComboBox.renderer\".contentMargins" , new InsetsUIResource ( 2 , 4 , 2 , 4 ) ) ; addColor ( d , "ComboBox:\"ComboBox.renderer\"[Disabled].textForeground" , "seaGlassDisabledText" , 0.0f , 0.0f , 0.0f , 0 ) ; addColor ( d , "ComboBox:\"ComboBox.renderer\"[Selected].textForeground" , "seaGlassSelectedText" , 0.0f , 0.0f , 0.0f , 0 ) ; addColor ( d , "ComboBox:\"ComboBox.renderer\"[Selected].background" , "seaGlassSelectionBackground" , 0.0f , 0.0f , 0.0f , 0 ) ; d . put ( "\"ComboBox.scrollPane\".contentMargins" , new InsetsUIResource ( 0 , 0 , 0 , 0 ) ) ; String p = "ComboBox" ; d . put ( p + ".States" , "Enabled,Pressed,Selected,Disabled,Focused,Editable" ) ; d . put ( p + ".Editable" , new ComboBoxEditableState ( ) ) ; d . put ( p + ":\"ComboBox.arrowButton\".Editable" , new ComboBoxArrowButtonEditableState ( ) ) ; String c = PAINTER_PREFIX + "ComboBoxPainter" ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , ComboBoxPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[Disabled+Pressed].backgroundPainter" , new LazyPainter ( c , ComboBoxPainter . Which . BACKGROUND_DISABLED_PRESSED ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , ComboBoxPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Focused].backgroundPainter" , new LazyPainter ( c , ComboBoxPainter . Which . BACKGROUND_FOCUSED ) ) ; d . put ( p + "[Focused+Pressed].backgroundPainter" , new LazyPainter ( c , ComboBoxPainter . Which . BACKGROUND_PRESSED_FOCUSED ) ) ; d . put ( p + "[Pressed].backgroundPainter" , new LazyPainter ( c , ComboBoxPainter . Which . BACKGROUND_PRESSED ) ) ; d . put ( p + "[Enabled+Selected].backgroundPainter" , new LazyPainter ( c , ComboBoxPainter . Which . BACKGROUND_ENABLED_SELECTED ) ) ; d . put ( p + "[Disabled+Editable].backgroundPainter" , new LazyPainter ( c , ComboBoxPainter . Which . BACKGROUND_DISABLED_EDITABLE ) ) ; d . put ( p + "[Editable+Enabled].backgroundPainter" , new LazyPainter ( c , ComboBoxPainter . Which . BACKGROUND_ENABLED_EDITABLE ) ) ; d . put ( p + "[Editable+Focused].backgroundPainter" , new LazyPainter ( c , ComboBoxPainter . Which . BACKGROUND_FOCUSED_EDITABLE ) ) ; d . put ( p + "[Editable+Pressed].backgroundPainter" , new LazyPainter ( c , ComboBoxPainter . Which . BACKGROUND_PRESSED_EDITABLE ) ) ; c = PAINTER_PREFIX + "ComboBoxArrowButtonPainter" ; p = "ComboBox:\"ComboBox.arrowButton\"" ; d . put ( p + ".size" , new Integer ( 22 ) ) ; d . put ( p + ".States" , "Enabled,Pressed,Disabled,Editable" ) ; d . put ( p + "[Disabled+Editable].backgroundPainter" , new LazyPainter ( c , ComboBoxArrowButtonPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[Editable+Enabled].backgroundPainter" , new LazyPainter ( c , ComboBoxArrowButtonPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Editable+Pressed].backgroundPainter" , new LazyPainter ( c , ComboBoxArrowButtonPainter . Which . BACKGROUND_PRESSED ) ) ; d . put ( p + "[Editable+Selected].backgroundPainter" , new LazyPainter ( c , ComboBoxArrowButtonPainter . Which . BACKGROUND_SELECTED ) ) ; d . put ( p + "[Enabled].foregroundPainter" , new LazyPainter ( c , ComboBoxArrowButtonPainter . Which . FOREGROUND_ENABLED ) ) ; d . put ( p + "[Disabled].foregroundPainter" , new LazyPainter ( c , ComboBoxArrowButtonPainter . Which . FOREGROUND_DISABLED ) ) ; d . put ( p + "[Pressed].foregroundPainter" , new LazyPainter ( c , ComboBoxArrowButtonPainter . Which . FOREGROUND_PRESSED ) ) ; d . put ( p + "[Selected].foregroundPainter" , new LazyPainter ( c , ComboBoxArrowButtonPainter . Which . FOREGROUND_SELECTED ) ) ; d . put ( p + "[Editable].foregroundPainter" , new LazyPainter ( c , ComboBoxArrowButtonPainter . Which . FOREGROUND_ENABLED_EDITABLE ) ) ; d . put ( p + "[Editable+Disabled].foregroundPainter" , new LazyPainter ( c , ComboBoxArrowButtonPainter . Which . FOREGROUND_DISABLED_EDITABLE ) ) ; c = PAINTER_PREFIX + "ComboBoxTextFieldPainter" ; p = "ComboBox:\"ComboBox.textField\"" ; d . put ( p + ".contentMargins" , new InsetsUIResource ( 2 , 6 , 2 , 0 ) ) ; d . put ( p + ".background" , Color . WHITE ) ; d . put ( p + "[Disabled].textForeground" , getDerivedColor ( "seaGlassDisabledText" , 0.0f , 0.0f , 0.0f , 0 , true ) ) ; d . put ( p + "[Disabled].backgroundPainter" , new LazyPainter ( c , ComboBoxTextFieldPainter . Which . BACKGROUND_DISABLED ) ) ; d . put ( p + "[Enabled].backgroundPainter" , new LazyPainter ( c , ComboBoxTextFieldPainter . Which . BACKGROUND_ENABLED ) ) ; d . put ( p + "[Selected].backgroundPainter" , new LazyPainter ( c , ComboBoxTextFieldPainter . Which . BACKGROUND_SELECTED ) ) ; }
initialize the combo box settings .
