Skip to main content

Open JPopupMenu ONLY on JMenu click

No replies
darkcrawler
Offline
Joined: 2009-02-05
Points: 0

Hi,

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