コード例 #1
0
  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
ファイル: SIPCommComboBoxUI.java プロジェクト: onsip/jitsi
 /**
  * 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);
 }
コード例 #3
0
 public void configureEditor() {
   super.configureEditor();
   editor.setBackground(UIManager.getColor("text"));
 }