title: How to map the JComboBox item to its corresponding ID?
body: <p>I have a table in a database that contains two fields</p>
  
  <ul>
  <li>id</li>
  <li>name</li>
  </ul>
  
  <p>I have populated a JComboBox "combo1" with all the names stored in the DB. Now I want that whenever a user selects an item of the "combo1", I can recognize the "id" of the selected item.</p>
  
  <p>But the problem is that names can be duplicates in a table. So let assume if a table has 3 duplicate names, then</p>
  
  <p>Q1. How to show the items in the "combo1" so that user can distinguish between those common names?</p>
  
  <p>Q2. After the user has clicked an item, How can I recognize that on which item the user has clicked, if the selected item has duplicates?</p>