title: I want to obtain auto filtering in JTable as in ms excel
body: <p>I am using <code>jtable</code> to display data from ms sql server table.<br>
  I am able to sort the data using:    </p>
  
  <pre><code>TableRowSorter&lt;TableModel&gt; sorter = new TableRowSorter&lt;TableModel&gt;(model);    
  
  jtable.setRowSorter(sorter);
  </code></pre>
  
  <p>The above sorts the data in ascending and descending order.  </p>
  
  <p>Is there any such simple function in java to obtain auto filtering of rows as in ms excel?  </p>
  
  <p>Thanks in advance</p>