comboBox.setBackground(defaults.getColor("ComboBox.background")); comboBox.setFont(defaults.getFont("ComboBox.font")); comboBox.setForeground(defaults.getColor("ComboBox.foreground"));
if (comboBox.getFont() instanceof UIResource) comboBox.setFont(defaults.getFont("ComboBox.font"));  if (comboBox.getForeground() instanceof UIResource) comboBox.setForeground(defaults.getColor("ComboBox.foreground"));
  protected void installDefaults()  {    UIDefaults defaults = UIManager.getLookAndFeelDefaults();    comboBox.setBackground(defaults.getColor("ComboBox.background"));    comboBox.setFont(defaults.getFont("ComboBox.font"));    comboBox.setForeground(defaults.getColor("ComboBox.foreground"));    // Set default color that should be used to to render selected item    // of the combo box.    shadow = defaults.getColor("Button.shadow");    darkShadow = defaults.getColor("Button.darkShadow");    lightHighlight = defaults.getColor("Button.light");    highlight = defaults.getColor("Button.highlight");  }