posted 22 years ago
hi Gregg,
IMHO updating of the tree is done automatically whenever the treemodel fires a change event. so, the kind of the update depends on the event that is fired. very similar to the JTabel-TableModel communication. I would try to reduce the updating as much as possible for if the tree gets big, it might flicker when it is updated from scratch. most of the time, updating the whole thing is simply unnecessary, I suppose.
What I just thought of: you could create a table in the database itself that stores the information that and what data was changed, and when. thus, you won't have to check changes against your treemodel. each client would have to know when the last change happened, or what ID it had or whatever, to know which changes haven't been applied to it, yet. don't know, if that would work.
cheers
Chantal