title: AutoCompleteDecorator with combo box
body: <p>I have a <code>JComboBox</code> with list of 200 task names. Initial selection is blank in the <code>JComboBox</code>.</p>
  
  <pre><code>    JComboBox combo = new JComboBox();
      combo.setEditable(false);
      combo.addItem("");
      for (MyTask task : this.tasks) {
          combo.addItem(task.getTaskName());
      }
      combo.setSelectedIndex(0);
      combo.addActionListener(this);
      AutoCompleteDecorator.decorate(combo);
  </code></pre>
  
  <p>Based on the task selected, a new <code>JFrame</code> pops up with a graph drawn based on the selection. </p>
  
  <p>This happens in the <code>actionPerformed</code> method.</p>
  
  <pre><code> JComboBox jcmbType = (JComboBox) evt.getSource();
   String selectedJob = (String) jcmbType.getSelectedItem();
   // code for JFrame popup with graph here
  </code></pre>
  
  <p>Since the number of tasks are huge, I have used <code>AutoCompleteDecorator</code> of <code>SwingX</code> api to facilitate selection of appropriate task. </p>
  
  <p>However, as soon as I type the first letter, the first task starting with that letter gets selected and the <code>JFrame</code> pops up with its graph.</p>
  
  <p>How to control this? I do not want anything to happen until user selects the task he wants.</p>
  
  <p>If I add a <code>JButton</code> near the <code>JComboBox</code>, how can I read the <code>JComboBox</code>'s value in <code>JButton</code> action listener ?</p>