My code is that the user inputs the thing he wants to search about in a textfield and it is filtered automatically in the jtable but I have a function that when the user cli