code: private void updateFilter()
      {
          List<RowFilter<TableModel, Integer>> regexFilters = 
              new ArrayList<RowFilter<TableModel, Integer>>();
          for (int i = 0; i < textFields.size(); i++)
          {
              JTextField textField = textFields.get(i);
              if (textField == null)
              {
                  continue;
              }
              String regex = textField.getText();
              RowFilter<TableModel, Integer> regexFilter = 
                  createRegexFilter(regex, i);
              if (regexFilter == null)
              {
                  continue;
              }
              regexFilters.add(regexFilter);
          }
          if (regexFilters.isEmpty())
          {
              filterConsumer.accept(null);
          }
          else
          {
              RowFilter<TableModel, Integer> rowFilter = 
                  RowFilter.andFilter(regexFilters);
              filterConsumer.accept(rowFilter);
          }
      }
docs: Update the row filter based on the contents of the text fields