Figured it out!  The problem wasn't really the drawing operation, but the fact that

MouseEvent.isPopupTrigger() works differently under Windows than it does under Linux.
I changed my check from e.isPopupTrigger() to

(e.getModifiers() & InputEvent.BUTTON3_MASK) == InputEvent.BUTTON3_MASK)

Works GREAT!

Thanks for help, Monica!

-Daniel


On Fri, 2003-03-21 at 14:20, Monica Sleumer wrote:
In my experience, popup menus work in windows just as well as in linux,
but you have to mouseover them before they appear. After the code to
create the popup has been executed, move your mouse into, over, and out
of the space you expect to see the popupmenu, and it should come up.

Also, make sure you execute that line
JPopupMenu.setDefaultLightWeightPopupEnabled( false );
at the very beginning of your code, before you do anything else,
especially before you create the Menubar.

Hope that helps.

We got our popup menus working, but they're still pretty buggy. Every
now and then one of them gets stuck and refuses to go away no matter
what you do. And the cascading popupmenus fail frequently.

Monica

Daniel L. Pasco wrote:

>
> arrgh.  I am confounded.
>
> I am using popup menus in my java3d applet  I have included the
> line
>
> JPopupMenu.setDefaultLightWeightPopupEnabled( false );=3D20
>
> in my initialization code and my menus work fine under linux.  They do
> not work at
> all under windows, with any combination of JVM and java3d I have tried
> (jdk 1.4, 1.41, java3d 1.3, 1.3.1, opengl and direct3d).
>
> Does anyone have any insight into why this might be so?
>
> -Daniel
>

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Attachment: signature.asc
Description: This is a digitally signed message part

Reply via email to