aspose file tools*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes JXam Mock Exam Question 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 "JXam Mock Exam Question" Watch "JXam Mock Exam Question" New topic
Author

JXam Mock Exam Question

Jerson Chua
Ranch Hand

Joined: Feb 08, 2000
Posts: 68
Only Frames can contain menu bars or pull-down menus.
My answer is true but the given answer is false. Please confirm the answer. Why?
Thank you...
maha anna
Ranch Hand

Joined: Jan 31, 2000
Posts: 1467
Jerson,
Only Frames can contain menu bars or pull-down menus.
The answer given as 'false' is correct. Because menu bars are attached to ONLY frames. But pull-down menus can be attached to menuBar or another pulldown menu. Refer to the API doc. For Menu
.add(MenuItem item) is there. Since 'Menu' is also a 'MenuItem' we can always create sub-menus under another menu. If the qstn would have been ONLY the 1st half Only frams can contain menuBars then I think what you say is correct.
regds
maha anna
Jerson Chua
Ranch Hand

Joined: Feb 08, 2000
Posts: 68
Thanx maha...
 
 
subject: JXam Mock Exam Question