if (currentValue != null) {
  public void paintCurrentValue(Graphics g, Rectangle bounds, boolean hasFocus)  {    if (! comboBox.isEditable())      {	Object currentValue = comboBox.getSelectedItem();	boolean isPressed = arrowButton.getModel().isPressed();	if (currentValue != null)	  {	    Component comp = comboBox.getRenderer()	                             .getListCellRendererComponent(listBox,	                                                           currentValue,	                                                           -1,	                                                           isPressed,	                                                           hasFocus);	    if (! comboBox.isEnabled())	      comp.setEnabled(false);	    g.translate(borderInsets.left, borderInsets.top);	    comp.setBounds(0, 0, bounds.width, bounds.height);	    comp.paint(g);	    g.translate(-borderInsets.left, -borderInsets.top);	  }	comboBox.revalidate();      }    else      comboBox.getEditor().setItem(comboBox.getSelectedItem());  }