title: How do I get the index of the item selected from a JComboBox?
body: <p>This is how I created my JComboBox - </p>
  
  <pre><code>String[] options = {"First", "Second" , "Third"};
  JComboBox optionsCombo = new JComboBox(options);
  </code></pre>
  
  <p>When one of these items is selected, how do i get the index of the item which was selected ? I don't want the item the item that was selected. </p>