title: JTable rowfilter between two dates, same column
body: <p>How can I implement a <code>RowFilter</code>between two dates? The dates are in string format. Is it necessary to change the format to a date format to apply a <code>RegexFilter</code>?</p>
  
  <p>I tried using the following, but failed :</p>
  
  <pre><code>DefaultTableModel model = (DefaultTableModel) easypath.masteBusiness_table.getModel();
  easypath.masteBusiness_table.setModel(model);
  TableRowSorter&lt;TableModel&gt; rowSorter = new TableRowSorter&lt;&gt;(easypath.masteBusiness_table.getModel());
  easypath.masteBusiness_table.setRowSorter(rowSorter);
  rowSorter.setRowFilter(RowFilter.regexFilter(startD+"\\s+(.*?)\\s+"+endD));
  </code></pre>
  
  <p><strong>I know I am wrong with the filtering as <code>(startD+"\\s+(.*?)\\s+"+endD));</code></strong> is only for searching a single string but as a novice I would very much appreciate any suggestion. </p>
  
  <p><em>UPDATE</em><br>
  I just saw this (<a href="http://docs.oracle.com/javase/7/docs/api/javax/swing/RowFilter.html" rel="nofollow">http://docs.oracle.com/javase/7/docs/api/javax/swing/RowFilter.html</a>) where <code>RowSorter&lt;M,I&gt;</code>, M is the model and I is an integer value, which does not match my criteria</p>