I want to have a GUI application which would contain multiple tabs, each with its own Table. I would like to include a search box below the tabs which would filter the currently selected tab. How can this dynamic behaviour be achieved?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
figure one you can to share
RowSorter/RowFilterfor allJTablesin current JVM instancefiltering works for all
JTablesnotice there could be performance issue in the case that there is/are JTable(s) contains bunch of rows
quite possible for
JTablesthat contains a few (limited number of) rows togetherdetermine (from arrays of tabs) visible tab, visible JComponents(or have to look at SwingUtilities), then remove
RowSorter/RowFilterfrom allJTablesinstances and then to addRowSorter/RowFilterto the visible an focusableJTableJTextFieldforRowSorter/RowFiltershould be crated only once times