>
 > the problem i'm facing is when i update the tree to reflect the
 > changes(insertion or deletion) of the set of objects.
 >

Manipulating data in a JTree means manipulating it's model, therefore u 
have to work on the trees model.

After inserting a node CHILD to node PARENT if u use the 
DefaultTreeModel u have just to notify the change to the model:
DefaultTreeModel.nodesWereInserted(PARENT, _INDEX_OF_CHILD);

Be aware this is psoido code, check the online documentation!

The change to the nodes structure has to be done before notifications!

byez
Patrick

-- 
+-----------------------------------------------------------------------
|  Save software competition, use Linux and Java!
|
|  Also visit http://www.lugbz.org the Linux User Group in Southtyrol!
|
|  Public PGP KEY: http://www.lugbz.org/PGP_PatrickOhnewein.asc
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||

If you put garbage in a computer nothing comes out but garbage.  But
this garbage, having passed through a very expensive machine, is
somehow enobled and none dare criticize it.

_______________________________________________
Advanced-swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/advanced-swing

Reply via email to