20000822: Heavyweight Menus

>From: Doug Lindholm <lind@xxxxxxxx>
>Organization: NCAR
>Keywords: 200008221849.e7MInhN14474


>There was some previous discussion about wanting to have a JMenu appear
>over a 3D display. The "solution" that was offered was to keep your 3D
>displays away from the JMenuBar. I've stumbled upon a solution, sorry if
>this is obvious to some of you:
>  JMenuBar menuBar = new JMenuBar();
>  JMenu menu = new JMenu();
>  menu.getPopupMenu().setLightWeightPopupEnabled(false); //this is the
>  menuBar.add(menu);

I've tried this with mixed results.  I get a lot more flashing of
the display when I use these lightweight menus which I find extremely
annoying.  At one point, I ran into a problem where the flashing was
continuous, and sucked up my CPU.  Going back to AWT menus made that
problem go away.  Let me know if you run into any problems using

Don Murray                               UCAR Unidata Program
dmurray@xxxxxxxxxxxxxxxx                        P.O. Box 3000
(303) 497-8628                              Boulder, CO 80307
Unidata WWW Server               http://www.unidata.ucar.edu/
McIDAS Demonstration Machine  http://mcdemo.unidata.ucar.edu/

  • 2000 messages navigation, sorted by:
    1. Thread
    2. Subject
    3. Author
    4. Date
    5. ↑ Table Of Contents
  • Search the visad archives: