I am populating a JComboBox (using addItem()) with all the elements of a collection. Each element in the collection is a HashMap (so its a ComboBo
addItem()
HashMap
If you have a hashmap, you will want to do something like:
JComboBox box = new JComboBox(hashMap.getValues().toArray());
Of course, you have to override the toString method of the object you have in the HashMap
toString