G
Gerry
I'm trying to use a contextual (right-click) menu in my applet.
It is working fine when I run it on a Mac.
But on Windows, the menu is not showing up.
The code I'm using from within my mousePressed method is:
if (e.isPopupTrigger())
{
popupMenu.show(this, e.getX(), e.getY());
}
It is handling regular (left-click) mouse presses correctly. It just
doesn't seem to be returning TRUE from e.isPopupTrigger() when I do a
right-click.
Any idea on what I might be doing wrong?
Or are contextual menus not widely supported for applets?
It is working fine when I run it on a Mac.
But on Windows, the menu is not showing up.
The code I'm using from within my mousePressed method is:
if (e.isPopupTrigger())
{
popupMenu.show(this, e.getX(), e.getY());
}
It is handling regular (left-click) mouse presses correctly. It just
doesn't seem to be returning TRUE from e.isPopupTrigger() when I do a
right-click.
Any idea on what I might be doing wrong?
Or are contextual menus not widely supported for applets?