File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes about Menu Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "about Menu" Watch "about Menu" New topic
Author

about Menu

Nasir Khan
Ranch Hand

Joined: Nov 04, 2000
Posts: 135
jxam says MenuBar can't be attached to only Frame.I went through
Jaworski book but could get the satifactory explaination about that.If MenuBar can't be attached to only Frame to what else it
can be?
Also there's a constructor
Menu(String label, boolean tf)
In java docs it's given if tf is true the menu can be torn off.
If tried but couldn't get any tearing off.According to the docs
it's implementatiom dependent.I can't get it.
please help me.
Nasir
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
According to the API:
The MenuBar class encapsulates the platform's concept of a menu bar bound to a frame. In order to associate the menu bar with a
Frame object, call the frame's setMenuBar method.
Perhaps you are reading the meaning of the book incorrectly. Can you post exactly what it says?


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: about Menu
 
Similar Threads
MenuBar
Menu Question
menu bars
doubt in awt components
JMenuBar & JInternalFrame