What is the correct technique to right-click a node in a JavaJFCTreeView?
I am having a problem selecting items from a popup menu that appears when a node in a tree is right-clicked. I think I need to start from the basics to make sure I know how to right click the node and get the coordinates so that I can call the PopupSelect(x,y,name) method.
After expanding the tree to the desired location, I select a node using the command: Tree.Select("root/nodea/node1")
What are the calls for popping up the menu once the node is selected? I've tried PressItem("root/nodea/node1", 2) and then Tree.ReleaseItem("root/nodea/node1", 2). This brings up the popup menu, but I am unable to select a menu item so I'm not sure if this is the proper technique. I need to get the x,y location of the popup so I can use the PopupSelect() method to pick a menu item by its name.
Thanks for any suggestions
Re: What is the correct technique to right-click a node in a JavaJFCTreeView?
You only need to get the x,y location of the point at which you want to perform the right click to use PopupSelect.
Thanks and Regards,