title: JComboBox itemStateChanged event called twice at a time
body: <pre><code>resultCombo = new JComboBox();
  resultCombo.addItemListener(new ItemListener() {
      @Override
      public void itemStateChanged(ItemEvent ie) {
           sampleText=resultCombo.getSelectedItem().toString();
           System.out.println("SampleText : "+sampleText);
      }
  });
  
  
  output:
  SampleText : selectedword
  SampleText : selectedword
  </code></pre>
  
  <p>Why this event is called twice when selecting item in combobox.?</p>