Yeah... that's true. I just set the behavior throughout the entire system
because they could all end up overlaying the Canvas3D. So all I do is:

JPopupMenu.setDefaultLightWeightPopupEnabled( false);

when I'm constructing me GUI and I'm good for the rest of my application.

----- Original Message -----
From: "Justin Couch" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, August 28, 2001 7:02 PM
Subject: Re: [JAVA3D] Heavyweight JMenu?


> > Its in the FAQ on j3d.org. Once you set popups menus to heavyweight
> > - the whole menu system becomes heavyweight.
>
> Not quite correct. You can set it on a per-menu basis. Here's the code I
> use in my scribbler application where I use some swing frames and some
> heavyweight frames
>
>
>     JMenuBar menubar = getJMenuBar();
>
>     int num_menus = menubar.getMenuCount();
>
>     for(int i = 0; i < num_menus; i++)
>     {
>       JMenu menu = menubar.getMenu(i);
>
>       JPopupMenu popup = menu.getPopupMenu();
>       popup.setLightWeightPopupEnabled(false);
>     }
>
> --
> Justin Couch                         http://www.vlc.com.au/~justin/
> Freelance Java Consultant                  http://www.yumetech.com/
> Author, Java 3D FAQ Maintainer                  http://www.j3d.org/
> -------------------------------------------------------------------
> "Humanism is dead. Animals think, feel; so do machines now.
> Neither man nor woman is the measure of all things. Every organism
> processes data according to its domain, its environment; you, with
> all your brains, would be useless in a mouse's universe..."
>                                               - Greg Bear, Slant
> -------------------------------------------------------------------
>
>
===========================================================================
> 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