JMenu Use

I'm trying to create menus of Bookmarks using JMenus and JMenuItems. Works fine until I try to attach a popupMenu to either object (wanted to have a "properties" option to change name, change folder its in, etc). I discovered that the menu item executes on either a right or a left click, then disappears - so the popup can't appear because its parent is not visible.

Any ideas?

[393 byte] By [DaveG24a] at [2007-10-2 17:15:29]
# 1
This is probably the reason most apps use a menu item to lauch a window for editing bookmarks. My only thought would be to extend JMenuItem and overload ProcessMouseEvent to determine which mouse button was used.
BaltimoreJohna at 2007-7-13 18:30:59 > top of Java-index,Desktop,Core GUI APIs...