@Override
                public void keyPressed(KeyEvent e) {
                    TableRowSorter<TableModel> sorter = new TableRowSorter<TableModel>(model);
                    sorter.setRowFilter(filter);
                    table.setRowSorter(sorter);
                }