catch click event even when no menuitem is selected?
i build a popup multi-level java menu, i want to catch the mouse click event on the menu(which may has submenu) as well as the menuitem,it is said that the menu does not send any event to the frame until one of its subitems is selected.
really?pls help!
Re: catch click event even when no menuitem is selected?
Hi
If you are using a JMenu there is a method
called "doClick(int amount of clicks)"
you can use this to trigger a click.
Or there is also a doClick method in AbstactButton
that you can use.
good luck
Phill.