How can I filter rows in a JTable?

后端 未结 4 1797
旧时难觅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

    To pick up the comment from kd304, you could use GlazedLists. There you'll use a FilterList as the input for your JTable, and the FilterList will take care of the rest.

提交回复
热议问题