void () { final DefaultComboBoxModel boxModel = (DefaultComboBoxModel)myProfilesComboBox.getModel(); boxModel.removeAllElements(); boxModel.addElement(null); for (CopyrightProfile profile : myProfilesModel.getAllProfiles().values()) { boxModel.addElement(profile); } }