I need to remove all items from the combo box
int itemCount = combo.getItemCount(); for(int i=0;i
Use this to remove all the elements from the combo box :
DefaultComboBoxModel model = (DefaultComboBoxModel) ComboBox.getModel(); model.removeAllElements();