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 menu bars? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "menu bars?" Watch "menu bars?" New topic
Author

menu bars?

Marie
Greenhorn

Joined: Oct 10, 2002
Posts: 4
i'm confused about the question "Where can menu bars be added?"
from my readings, it said that any object that implements MenuContainer interface can have a menubar, since Component implements MenuContainer, all components could have menubars
one mock exam gave me this answer..
however, in other mock exams, and i believe RH - they say that only frames can have menu bars....
confused? what is the real answer?
thanks...


Marie
Ramesh Donnipadu
Ranch Hand

Joined: Sep 16, 2000
Posts: 100
Marie,
There is nothing like MenuContainer interface. MenuComponent class is the super class of all menu related components. Incidentally this is an abstract class. MenuBar, MenuItem are subclasses of MenuComponent.
Yes. Frame is the only component that can have menubar.
Mapraputa Is
Leverager of our synergies
Sheriff

Joined: Aug 26, 2000
Posts: 10065
Marie,
Maha Anna did research for this complicated question
here: http://www.javaranch.com/ubb/Forum24/HTML/000703.html
and here: http://www.javaranch.com/ubb/Forum24/HTML/001392.html

Uncontrolled vocabularies
"I try my best to make *all* my posts nice, even when I feel upset" -- Philippe Maquet
Marie
Greenhorn

Joined: Oct 10, 2002
Posts: 4
so let me get this straight...
the difference in RH and Bill Brogden's is the phrasing of the question...
MenuBars can only be added to Frames
but menus, in the form of a menu bar (misleading) or a pop-up menu (this was the key word in the question) may be added to any subclass of Component
Steve Fahlbusch
Bartender

Joined: Sep 18, 2000
Posts: 561
    
    7

"SpaceBunny", take a look at this link:
http://www.javaranch.com/ubb/Forum10/HTML/000180.html
marie m
Greenhorn

Joined: Sep 27, 2000
Posts: 7
actually, by the time you posted your reply, ihave already registered...
paul wheaton
Trailboss

Joined: Dec 14, 1998
Posts: 20538
    ∞

Unfortunately, you need to register again. If you are not comfortable with giving your last name, use something that "looks normal". "Monroe"?


permaculture Wood Burning Stoves 2.0 - 4-DVD set
 
 
subject: menu bars?