if (comboBox.isEditable()) editor.setBounds(0, 0, editorWidth, comboBox.getBounds().height);
if (editor != null) editor.setBounds(rectangleForCurrentValue());
    public void layoutContainer(Container parent)    {      // Position editor component to the left of arrow button if combo box is       // editable      int arrowSize = comboBox.getHeight();      int editorWidth = comboBox.getBounds().width - arrowSize;      if (comboBox.isEditable())        editor.setBounds(0, 0, editorWidth, comboBox.getBounds().height);            arrowButton.setBounds(editorWidth, 0, arrowSize, arrowSize);      comboBox.revalidate();    }