This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes MenuBar Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Certification » Programmer Certification (SCJP/OCPJP)
Bookmark "MenuBar" Watch "MenuBar" New topic
Author

MenuBar

Jian Yi
Ranch Hand

Joined: Feb 01, 2002
Posts: 127
Question from Jxam.zip:
True or False.
Only Frames can contain menu bars or pull-down menus.
why is it false?
Thanks,
Jenny
Ricardo Cortes
Ranch Hand

Joined: Jan 23, 2002
Posts: 140
The answer is false because an applet is not a subclass of the Frame class. So, an applet cannot have a menu-bar.


Sun Certified J2EE Architect for the J2EE Platform (Part 1)<br />Sun Certified Web Component Developer for the J2EE Platform<br />Sun Certified Programmer for the Java 2 Platform
Steven Wong
Ranch Hand

Joined: Mar 07, 2002
Posts: 295
From Ricardo:

The answer is false because an applet is not a subclass of the Frame class. So, an applet cannot have a menu-bar.

As what I know, pull-down menus are accessed via a menu bar, which can appear only on Frames.
So why is the above false?
I don't understand your answer, Ricardo.
Clement


best regards,<br />Steven<br />SCJP, SCEA
Thomas Paul
mister krabs
Ranch Hand

Joined: May 05, 2000
Posts: 13974
It should be true. Only a Frame can accept a menu bar or a pull down menu. Unless, of course, you are talking about a JMenuBar!


Associate Instructor - Hofstra University
Amazon Top 750 reviewer - Blog - Unresolved References - Book Review Blog
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: MenuBar
 
Similar Threads
Disabling an entire JTable
Byte to string
Is SCWCD Adaptive?
Enthuware question doubt
hard question