| Author |
jtree structure update
|
kizgincocuk kizgincocuk
Greenhorn
Joined: Sep 15, 2003
Posts: 9
|
|
hi.. i wanna to update my tree structure after a specific action.I am adding/deleting nodes,but i can't see changes.. thanx..
|
 |
Joe Ess
Bartender
Joined: Oct 29, 2001
Posts: 8259
|
|
|
If you are using or extending javax.swing.tree.DefaultTreeModel, invoke fireTreeNodesInserted() on it. That will tell the model that the data has changed and it will fire events off to inform interested parties (i.e. the display). Look at the documentation for other useful event-firing methods.
|
"blabbing like a narcissistic fool with a superiority complex" ~ N.A.
[How To Ask Questions On JavaRanch]
|
 |
kizgincocuk kizgincocuk
Greenhorn
Joined: Sep 15, 2003
Posts: 9
|
|
thanx ... joe
|
 |
 |
|
|
subject: jtree structure update
|
|
|