I'm doing a small system where I'm using the TableRowSorter in a table, the TableRowSorter works great, but when I put another parameter to make the previous search filter it does not work and filters me with the previous model
This is the code of the combobox that makes the filter
private void txtFiltroCedEmisorKeyTyped(java.awt.event.KeyEvent evt) {
txtFiltroCedEmisor.addKeyListener(new KeyAdapter() {
@Override
public void keyReleased(KeyEvent ke) {
trs.setRowFilter(RowFilter.regexFilter("(?i)" + txtFiltroCedEmisor.getText(), 7));
}
});
trs = new TableRowSorter(modelo);
TablaReportes.setRowSorter(trs);
}
And using only one of these works fine, but using it with another similar filter does not work for me.