J
John
I am using context menus (JPopupMenu) with a JTree and have managed to
get to the stage where my context menus appear as required after a right
click. I would like the item to which the context menu applies to be in
focus after the right click (it doesn't do this by default). I can get
the effect I want by left clicking the item then right clicking it, so I
thought I would modify the actionlistener so that when a right click is
received, a left click is fired before the menu is displayed. For some
reason I can't seem to find the ActionListener that deals with the
mouseevents on the JTree? Any ideas?
John
get to the stage where my context menus appear as required after a right
click. I would like the item to which the context menu applies to be in
focus after the right click (it doesn't do this by default). I can get
the effect I want by left clicking the item then right clicking it, so I
thought I would modify the actionlistener so that when a right click is
received, a left click is fired before the menu is displayed. For some
reason I can't seem to find the ActionListener that deals with the
mouseevents on the JTree? Any ideas?
John