title: When using TableCellRenderer to display a localdate in format dd.mm.yyyy my JTable search function does not work as expected
body: <p>Basically the problem here is as follow, I have this TableCellRenderer:</p>
  <pre><code>public class CellRenderer_LocalDate extends DefaultTableCellRenderer implements TableCellRenderer {
  private static final long serialVersionUID = -9184414041940041458L;
  
  String displayFormat;
  
  public CellRenderer_LocalDate(String dateFormat) {
      this.displayFormat = dateFormat;
  }
  
  @Override
  public Component getTableCellRendererComponent(JTable table, Object value, boolean isSelected, boolean hasFocus,
          int row, int column) {
  
      if (value instanceof LocalDate) {
          LocalDate date = (LocalDate) value;
          
          value = date.format(DateTimeFormatter.ofPattern(displayFormat));
      }
      return super.getTableCellRendererComponent(table, value, isSelected, hasFocus, row, column);
  }
  </code></pre>
  <p>}</p>
  <p>And this function to search a JTable:</p>
  <pre><code>    /**
   * Filters the table to show a specific text
   */
  public void searchTable(JTextField searchTextField) {
      // Get model &amp; instantiate table sorter
      DefaultTableModel tableToFilter = (DefaultTableModel) this.getModel();
      TableRowSorter&lt;DefaultTableModel&gt; trSorter = new TableRowSorter&lt;DefaultTableModel&gt;(tableToFilter);
  
      // Get text to search &amp; Set row filter for this table
      String search = searchTextField.getText();
      
      // Filter table in correct format
      trSorter.setRowFilter(RowFilter.regexFilter(&quot;(?i)&quot; + search)); // Insensitive to upper case or lower case
      
      this.setRowSorter(trSorter);
  }
  </code></pre>
  <p>I have a column in the JTable that holds LocalDate in it.
  I made TableCellRenderer to display LocalDate column as dd.mm.yyyy.
  It works the way it should.</p>
  <p>The problem is that when I use search function in format dd.mm.yyyy it does not show me any rows that match the way LocalDate is displayed in JTable.</p>
  <p>An example: I have a column that holds LocalDate 2022-05-10. Due to the TableCellRenderer it is shown as 10.05.2022. Now if I use search and look for 10.05.2022 nothing will be shown as if nothing matches. But if I write in search field 2022-05-10 it will immediately show me the correct result. Please, what should I change in my functions to fix this bug?</p>