Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JTable insert/delete row on filtered data

843806Jan 4 2008 — edited Jan 5 2008
Hello,

I'm having a hard time getting a new row to show in the view after a filter has been applied to the data.

My JTable has a custom TableModel which extends AbstractTableModel. I've been able to successfully filter the data using:
RowFilter.regexFilter()
Now that the view has changed, I'd like to be able to insert/delete a row and have it show in the view immediately but what's happening is, the (new) row is getting updated in the underlying model but the view is not updating.

There's got to be a way to do this...but how?
Thanks for the help
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 2 2008
Added on Jan 4 2008
2 comments
241 views