How can I filter rows in a JTable?

后端 未结 4 1790
旧时难觅i
旧时难觅i 2020-12-06 08:13

i have a JTable having many strings in that.i have created a textbox for user entry, above the table. i want a row filter which can remove the rows having strings enterd by

4条回答
  •  既然无缘
    2020-12-06 08:49

    You can use JTable.setAutoCreateRowSorter which will use the default row sorter/filter of the JTable

提交回复
热议问题