If you've got an existing JComboBox and you want to set its list of items to the contents of a
String array, you could do this:
combo.setModel(new DefaultComboBoxModel(names));
or if you have the "names" array around when you first create the combo box, you can just say
combo = new JComboBox(names);