Paul Clapham wrote:You don't update the backing store based on what happens in the cell editor. You should update it based on what happens in the setValueAt() method of the table model.
I just copied what was in the book, Head First Java, 2nd Edition. I'm sure there's more efficient ways to make this stuff, but this is my first programming language I'm learning so it'll be awhile before I worry about that.
You have a filteredList.add(li); that is unconditionally executed when filter is not the empty String (line 37). That should probably be wrapped in the same condition you use in setFilter(...) -- if (filter.equals(li.getSource())