Heavyweight Menus

Hi,

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
key 
  menuBar.add(menu);

Doug

-- 
*----------------------------------------------------------------------*
| Doug Lindholm, Software Engineer          |  E-mail: lind@xxxxxxxx   |
| Research Applications Program             |   Phone: 303-497-8374    |
| National Center for Atmospheric Research  |                          |
| P.O. Box 3000                             |     There's no place     |
| Boulder, Colorado 80307-3000              |        like $HOME        |
*----------------------------------------------------------------------*