isMinimumSizeDirty = true;   displaySize = getDisplaySize(); comboBox.repaint();
contentsChanged(e);
    public void intervalRemoved(ListDataEvent e)    {      // Lets assume every change invalidates the minimumsize.      isMinimumSizeDirty = true;      // recalculate display size of the JComboBox.      displaySize = getDisplaySize();      comboBox.repaint();    }