title: Filtering a JList from text field input
body: <p>I have a text field stick to a JList and I need to filter JList entities based on values entered by user in the text field.</p>
  <p>For example, if the JList values are <code>{&quot;one&quot;,&quot;two&quot;,&quot;three&quot;...}</code> and the user types <code>&quot;three&quot;</code> in the text field, the JList should select the row with <code>&quot;three&quot;</code> value.</p>
  <pre><code>private void jTbandnoActionPerformed(java.awt.event.ActionEvent evt)   
  {                                         
       // TODO add your handling code here:
       String tXT=jTbandno.getText();
      jList2.collections.equal(tXt);
      int index = jList2.getSelectedIndex();
      JOptionPane.showMessageDialog(null, index);
   }            
  </code></pre>