This week's book giveaway is in the OO, Patterns, UML and Refactoring forum.
We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma 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


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: 875
    
    1
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: 434
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’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
 
subject: Why menu doesn't display
 
It's not a secret anymore!