This week's giveaway is in the EJB and other Java EE Technologies forum.
We're giving away four copies of EJB 3 in Action and have Debu Panda, Reza Rahman, Ryan Cuprak, and Michael Remijan on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Why menu doesn't display Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Why menu doesn Watch "Why menu doesn New topic
Author

Why menu doesn't display

Hui Zhao
Ranch Hand

Joined: Jul 09, 2007
Posts: 116

Thanks
Brian Cole
Author
Ranch Hand

Joined: Sep 20, 2005
Posts: 862
Originally posted by Hui Zhao:
Why menu doesn't display


I don't see setJMenuBar(menuBar) anywhere in your code.


bitguru blog
Hui Zhao
Ranch Hand

Joined: Jul 09, 2007
Posts: 116
Please ignore menuBar.
Now my question is can I add a popup menu to an applet directly?

Regards!
Qunfeng Wang
Ranch Hand

Joined: Jan 28, 2005
Posts: 425
Add a MouseListener to you applet, and show the popup menus in your mousePressed() method.

Please refer to: How to use menus


To be or not to be. It's a question.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Why menu doesn't display
 
Similar Threads
Run time error...tricky one..
mnemonics are not getting focus for the menubar
JMenu problem
Is this a bug..?
JCheckboxMenuItem won't change selection color