title: Netbeans JComboBox multiple columns
body: <p>Is there a way to add two columns into a JComboBox in Netbeans?</p>
  
  <p>I want to do the following:
  In a cboBox, I want to populate a list of countries with their ISO codes, eg.:</p>
  
  <pre><code>+----------------+---+
  | Afghanistan    | V | &lt; The Combo Box :D
  +----------------+---+
           ↓↓↓
  +----+---------------+
  |ISO |  Country      |
  +----+---------------+
  | AF | Afghanistan   |
  | AX | Åland Islands |
  | AL | Albania       |
  |... | ...           |
  +----+---------------+
  </code></pre>
  
  <p>Then, When a user has selected a country, I need to extract the ISO code (col. 0) to store in a config file. This should later then be read again and be displayed as a country name, instead of the ISO code.</p>
  
  <p>I've searched for a solution, but all I could find was how to put a cboBox into a JTable.</p>
  
  <p>(This is the list I use/adapted: <a href="http://www.textfixer.com/resources/dropdowns/country-list-iso-codes.txt" rel="nofollow">http://www.textfixer.com/resources/dropdowns/country-list-iso-codes.txt</a>)</p>
  
  <p>Thanks!</p>