Hi:
I have added the JMenuItem's to the JMenu but the items are still not
showing up (only a blank drop down menu shows up):
// Setup the menu
JPopupMenu.setDefaultLightWeightPopupEnabled(false);
JMenuBar.setDefaultLightWeightPopupEnabled(false);
menuBar = new JMenuBar();
menu = new JMenu ( " File " );
menu.setMnemonic ( KeyEvent.VK_F );
menuBar.add ( menu );
menuItem = new JMenuItem ( " Load Geometry ", KeyEvent.VK_G );
menu.add ( menuItem );
menuItem = new JMenuItem ( " Load Volume ", KeyEvent.VK_V );
menu.add ( menuItem );
menuItem = new JMenuItem ( " Print ", KeyEvent.VK_P );
menu.add ( menuItem );
menuItem = new JMenuItem ( " Save ", KeyEvent.VK_S );
menu.add ( menuItem );
menuItem = new JMenuItem ( " Quit ", KeyEvent.VK_Q );
menu.add ( menuItem );
All further hints or suggestions would be greatly appreciated!
Sincerely,
Mona
> From: "Pondrom, Pierre L" <[EMAIL PROTECTED]>
> To: "'Mona Wong'" <[EMAIL PROTECTED]>
> Subject: RE: menu not working properly
> Date: Tue, 4 Dec 2001 07:52:30 -0600
> MIME-Version: 1.0
>
> HI Mona,
> I seen this before and it was my error in not filling the JPopupMenu with
> items.
> I think you have the same problem.
>
> -----Original Message-----
> From: Mona Wong [mailto:[EMAIL PROTECTED]]
> Sent: Monday, December 03, 2001 8:30 PM
> Subject: menu not working properly
>
>
> Hi:
>
> My JMenuBar isn't working properly. I *am* using the call
> "JPopupMenu.setDefaultLightWeightPopupEnabled(false);" in my code. Note, I
> tried "JMenuBar.setDefaultLightWeightPopupEnabled(false);" and got a compile
> error so I presume that the JPopupMenu covers the JMenuBar.
>
> The symptom is that when I click on the JMenuBar text, a white box
> drops
> down (on top of Canvas) but the JMenuItem text choices are not displayed.
>
> All help is appreciated!
>
> Sincerely,
>
> Mona
==================================================================
Mona Wong
National Center for Microscopy and Imaging Research
University of California, San Diego
http://ncmir.ucsd.edu/
"The truth shall set you free, but first it will piss you off"
A Landmark instructor
==================================================================
===========================================================================
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".