Skip to main content

Open JPopupMenu ONLY on JMenu click

Please note these forums are being decommissioned and use the new and improved forums at
No replies
Joined: 2009-02-05


AFAIK, a JPopupMenu opens when:

(1) a user CLICKS in a JMenu and this is included in a JMenuBar;

(2) a user HOVERS OVER a JMenu and this is included in a JPopupMenu.

This is the normal behaviour.

Is there any way open a JPopupMenu only by clicking a JMenu which is included in a JPopupMenu? I'm basically looking for a way to implement (2) using a click and not a hover over.

Thanks in advance