title: JTable Row filtering by JTextField value
body: <p>I enter a name on my JTextfield , But my table don't filter any thing!</p>
  
  <p>My code:</p>
  
  <pre><code>public class UserPage_Admin extends JFrame {
  
  JTable table;
  UserModel model;
  public UserPage_Admin() {
  
      model = new UserModel(...);
      TableRowSorter sorter = new TableRowSorter&lt;TableModel&gt;(model);
      table = new JTable(model);
      table.setRowSorter(sorter);
  
      add(new JScrollPane(table), BorderLayout.CENTER);
      add(panelForm(), BorderLayout.PAGE_START);
  
      RowFilter&lt;UserModel, Object&gt; rf = null;
      try {
          rf = RowFilter.regexFilter(filterTF.getText(), 0);
      } catch (PatternSyntaxException pse) {
          return;
      }
      sorter.setRowFilter(rf);
  
      setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      setSize(850, 600);
      setVisible(true);
  }
  </code></pre>