public void installUI(JComponent c) { super.installUI(c); arrowIcon = new MotifComboBoxArrowIcon( UIManager.getColor("controlHighlight"), UIManager.getColor("controlShadow"), UIManager.getColor("control")); Runnable initCode = new Runnable() { public void run() { if (motifGetEditor() != null) { motifGetEditor().setBackground(UIManager.getColor("text")); } } }; SwingUtilities.invokeLater(initCode); }
public void configureEditor() { super.configureEditor(); editor.setBackground(UIManager.getColor("text")); }