'Searching data in the JTable using
I have a table that I post with a database connection. I am searching the table, but after searching, selecting the row and bringing the result to the textbox returns another result. If you don't do any search, the correct result is textbox.
What path should I follow?
DefaultTableModel model =(DefaultTableModel)CariIslem_personellist.getModel();
TableRowSorter<DefaultTableModel> tr= new TableRowSorter<DefaultTableModel>(model);
CariIslem_personellist.setRowSorter(tr);
tr.setRowFilter(RowFilter.regexFilter(Ara.getText().trim()));
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
