getTypeComboBox2().removeAllItems(); for (int i = 0; i < targets.length; i++) getTypeComboBox2().addItem(targets[i]);
public void showMorphingDialog(String name, String oldType) {	morphingDialog_WindowOpened(null);	getNameTextLabel().setText(name);	getTypeComboBox2().setSelectedItem(oldType);	getMorphingDialog().setLocationRelativeTo(this);	getMorphingDialog().setVisible(true);}