aspose file tools*
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: 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: 430
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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Why menu doesn't display