In the event handler, determine which node is selected by invoking the tree's getLastSelectedPathComponent method. Use the getUserObject method to get the data associated with the node.
How can i get the values even without any event being triggered. What i need is to get a node value when i just have a tree object which has the entire tree.