I was having a scoot round the Mercury Knowledge base and saw an Article on right clicking an object in a java tree, and thought of this thread...
Anyways here what they recommend:
</font><blockquote><font size="1" face="Verdana, Arial, Helvetica">code:</font><hr /><pre style="font-size:x-small; font-family: monospace;">Public Function RightClick(JTree, Node)
set selectionPath = JTree.Object.getSelectionPath()
set rect = JTree.Object.getPathBounds(selectionPath)
x = rect.x
y = rect.y
JTree.Click CStr(x), CStr(y), "RIGHT"
'Register function and call it
RegisterUserFunc "JavaTree", "RightClick", "RightClick"
JavaWindow("JTree Demo".JavaTree("JTree".RightClick "Books;Java Books"
UnRegisterUserFunc "JavaTree", "RightClick" </pre><hr /></blockquote><font size="2" face="Verdana, Arial, Helvetica">The code will require some tweaking on your part.
I'm not a complete idiot - some parts are missing.