NOTICE: This version of the NSF Unidata web site (archive.unidata.ucar.edu) is no longer being updated.
Current content can be found at unidata.ucar.edu.

To learn about what's going on, see About the Archive Site.

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: