title: JComboBox submit value like HTML select
body: <p>I have a table with two columns - <code>id</code> and <code>desc</code>. Is it possible to show a list of <code>desc</code> column values to the user in a JComboBox and when the user selects an item from the list and clicks a button, I get its corresponding <code>id</code> value?</p>
  
  <p>That is, is it possible to do something like this in Swing?</p>
  
  <pre><code>&lt;select&gt;
   &lt;option value="1"&gt;Hi&lt;/option&gt;
   &lt;option value="2"&gt;Hello&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>When the user clicks Hello, I would need 2 as the value.</p>