how can i refresh TreeNode of JTree

hi all,

I want to refresh particular TreeNode of JTree, how can i do it. I am not using DefaultMutableTreeNode, i am using TreeNode.

presently i am updating whole node itself using tree.updateUI(). but it will refresh whole tree itself. i dont know is the best way to refresh the tree.

thanks

daya

[328 byte] By [dayanandabva] at [2007-11-27 3:56:56]
# 1
Fire an event for the node:getModel().nodesChanged(node, iChanges);
rebola at 2007-7-12 9:01:13 > top of Java-index,Desktop,Core GUI APIs...
# 2
hi,thanks for you replay,i am not using DefaultMutableTreeNode, so i cont use nodesChanged(node, iChanges);is their any other way to refresh treenode.thanksdaya
dayanandabva at 2007-7-12 9:01:13 > top of Java-index,Desktop,Core GUI APIs...
# 3
TreeNode is a superclass of DefaultMutableTreeNode ... so can't u cast your nodes to DefaultMutableTreeNode?
Oleka at 2007-7-12 9:01:13 > top of Java-index,Desktop,Core GUI APIs...
# 4
The method is in the TreeModel, not in the node. Through JTree.getModel() you get hold of the model. DefaultTreeModel has the nodesChanged(...) method.
rebola at 2007-7-12 9:01:13 > top of Java-index,Desktop,Core GUI APIs...
# 5
thanks for every one
dayanandabva at 2007-7-12 9:01:13 > top of Java-index,Desktop,Core GUI APIs...