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 want to override the toString() method you could just create a decorator class that implements Map and uses a HashMap to implemented the needed methods and give your own implementation of toString().
toString()
Map