|
View:
New views
3 Messages
—
Rating Filter:
Alert me
|
|
|
Custom TableModel?Good evening.
I'm using glazedlists-1.8.0_java15.jar In an attempt to separate my table (view) from the data, (model) I'm currently extending EventTableModel to contain not only the source list, but Sorted/FilterLists as well. Ideally, I'd like to simply supply: new MyTableModel(); ...And have that one create a BasicEventList, wrap it in a SortedList, wrap that in a FilterList, install comparator chooser, etc. I'm almost there, but I'm stumbling on one tiny detail. The table (view) doesn't update as it should whenever the user writes something in the TextComponentMatcherEditor. I need to resize the window in order to force it to redraw, which is obviously not going to make my boss happy. I reckon some sort of event should be fired somehow, but I'm not sure how to do it. Can I call upon the EventTableModel parent to do it somehow? If so, which method should I override, and with what? Thanks in advance. /Eric --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@... For additional commands, e-mail: users-help@... |
|
|
|
|
|
Re: Custom TableModel?Yes, it was a rather strange behaviour. I believe I found a way to refresh the table, but I must have fired far too many events because the performance dropped significantly to the point of being unusable. I reverted back to your suggestion (like the tutorial does it) and things are working like they should again. Well, atleast I tried. Thanks for replying. :) |
| Free embeddable forum powered by Nabble | Forum Help |