JComboBox cb = (JComboBox) parent; if (!cb.isEditable()) { Rectangle bounds = parent.getBounds(); arrowButton.setBounds(0, 0, bounds.width, bounds.height); } else superLayout(parent);
layoutComboBox(parent, this);
    public void layoutContainer(Container parent)    {      JComboBox cb = (JComboBox) parent;      if (!cb.isEditable())        {          Rectangle bounds = parent.getBounds();          arrowButton.setBounds(0, 0, bounds.width, bounds.height);        }      else         superLayout(parent);    }