title: How to use Map element as text of a JComboBox
body: <p>I am populating a JComboBox (using <code>addItem()</code>) with all the elements of a collection.  Each element in the collection is a <code>HashMap</code> (so its a ComboBox of Hashmaps..).</p>
  
  <p>My question is - Given that I need each item to be a <code>HashMap</code> how do I set the text to apear in the combobox on the GUI?  It needs to be the value of a certain key in the map.  Normally if I am populating a combobox with my own type, I would just overide the <code>toString()</code> method...but I am not sure how to acheive this since I am using a Java HashMap.  </p>
  
  <p>Any ideas (if possible, without implementing my own HashMap)?</p>
  
  <p><strong>Update</strong>: It seems like there isn't anyway to avoid having the object int the JComboBox overide toString() if I want custom functionality..I wish there was a way to (1) specify the objects to be loaded into the JComboBox and (2) specify how these objects are to appear in the GUI.</p>