How to find selected node in Tree?

Posted by badgirl on Stack Overflow See other posts from Stack Overflow or by badgirl
Published on 2010-03-27T14:36:00Z Indexed on 2010/03/27 14:43 UTC
Read the original article Hit count: 158

Filed under:
|

Hello. I have dynamic tree (moreover nodes can have children). Every node has some action. When I right click on some node, it offers me some actions. One action, for example createChildNode creates child node, which in turn creates MyObject2. MyObject2 must be created with assistance of MyOject1, which was created in parent node(that one where I right click for actions ).

How to get that object from selected node? That objects in nodes are putted to lookups.singleton(MyObjectX)

© Stack Overflow or respective owner

Related posts about java

Related posts about netbeans