Color saved = g.getColor(); if (comboBox.isEnabled()) { g.setColor(UIManager.getColor("UIManager.background")); } else { g.setColor(UIManager.getColor("UIManager.disabledBackground")); } g.fillRect(bounds.x, bounds.y, bounds.width, bounds.height); g.setColor(saved);
  public void paintCurrentValueBackground(Graphics g, Rectangle bounds,                                          boolean hasFocus)  {    // background is painted by renderer, so it seems that nothing    // should be done here.  }