JTable row filters updates

Posted by Jeff Storey on Stack Overflow See other posts from Stack Overflow or by Jeff Storey
Published on 2010-03-24T22:12:29Z Indexed on 2010/03/24 22:13 UTC
Read the original article Hit count: 429

Filed under:
|
|
|

Is there a way to tell a JTable's row filter that it should update itself to display the filtered data? I'm currently using the fireTableDataChanged method in the AbstractTableModel but the underlying data for the table isn't actually changing, so this seems like it might be wasteful. The way my filter works is to check if data in the table is in some other list and only display it if it is in that list. So that other list changed and I need to tell the filter to refresh itself. Is fireTableDataChanged the correct way to do this?

thanks, Jeff

© Stack Overflow or respective owner

Related posts about java

Related posts about swing