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);
  }
示例#2
0
 /**
  * Paints the UI for the given component through the given graphics object.
  *
  * @param g the <tt>Graphics</tt> object used for painting
  * @param c the component to paint
  */
 public void paint(Graphics g, JComponent c) {
   AntialiasingManager.activateAntialiasing(g);
   super.paint(g, c);
 }
 public void configureEditor() {
   super.configureEditor();
   editor.setBackground(UIManager.getColor("text"));
 }