且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

通过列值动态过滤jTable

更新时间:2023-12-03 12:14:28

阅读

Read the section from the Swing tutorial on Sorting and Filtering for a working example that filters on a single column.

关键是在创建正则表达式过滤器时指定列.您还可以检查RowFilter.regexFilter(...)的API中的参数.

The key is to specify the column when you create the regex filter. You can also check the API for the RowFilter.regexFilter(...) for the parameters.