Due to the current gap in continued funding from the U.S. National Science Foundation (NSF), the NSF Unidata Program Center has temporarily paused most operations. See NSF Unidata Pause in Most Operations for details.

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        |
*----------------------------------------------------------------------*


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