title: Is there any way to add objects to a JComboBox and assign a String to be shown?
body: <p>I want to add objects to a JComboBox but show a String on the JComboBox for each object.</p>
  
  <p>For example, in the following html code</p>
  
  <pre><code>&lt;select&gt;
    &lt;option value="1"&gt;Item 1&lt;/option&gt;
    &lt;option value="2"&gt;Item 2&lt;/option&gt;
    &lt;option value="3"&gt;Item 3&lt;/option&gt;
    &lt;option value="4"&gt;Item 4&lt;/option&gt;
  &lt;/select&gt;
  </code></pre>
  
  <p>in the first item, the String that is shown is "Item 1", but the value of the item is "1".</p>
  
  <p>Is there a form to do something like that with a JComboBox?</p>