Hi Christopher,

first of all. I can say that popups work with Java3D!!!!

I summarize my experience shortly:

- use the JPopupmenu
      JPopupMenu popupMenu = new JPopupMenu();

- set the heavy weight attribute using
      popupMenu.setLightWeightPopupEnabled( false );

- and finally the most important thing: Don't use the canvas as component when
calling
  the show method of the popup. Use
        popupMenu.show( component, e.getX(), e.getY() );

  instead, where component is your applet or frame, the canvas is embedded in
and e is
  the appropriate mouse event.


I realized, that you cannot see the popup when it's attached to the canvas (or
only at the right and
bottom border (try it!!!) )

This works for my application, and should do for yours.

Cheers,
Karsten


Christopher Michael Morris wrote:

> I hope this is a dumb question. What is the easiest (if any) way to add a
> popup menu to a Java3D program? Nothing I tried worked. Thanks in advance.
>
> Chris Morris
>
> ===========================================================================
> 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".

===========================================================================
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".

Reply via email to