if (c instanceof JComboBox) { JComboBox cb = (JComboBox) c;  paintBorder(g, comboBox.getBounds(), hasFocus);  Rectangle rect = rectangleForCurrentValue(); paintCurrentValueBackground(g, rect, hasFocus); paintCurrentValue(g, rect, hasFocus); }
Rectangle rect = rectangleForCurrentValue(); paintCurrentValueBackground(g, rect, hasFocus); paintCurrentValue(g, rect, hasFocus);
  public void paint(Graphics g, JComponent c)  {    if (c instanceof JComboBox)      {	JComboBox cb = (JComboBox) c;	paintBorder(g, comboBox.getBounds(), hasFocus);	Rectangle rect = rectangleForCurrentValue();	paintCurrentValueBackground(g, rect, hasFocus);	paintCurrentValue(g, rect, hasFocus);      }  }