GeeCON Prague 2014*
The moose likes Programmer Certification (SCJP/OCPJP) and the fly likes Which AWT component can contain a meu bar 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 "Which AWT component can contain a meu bar" Watch "Which AWT component can contain a meu bar" New topic
Author

Which AWT component can contain a meu bar

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Hi
According to RHE page 341 ,Q # 8, only frame can contain a menu bar..According to Exam Cram page 229, Q # 2 Frame, window, Applet, panel all can contain a menu bar or a pop up menu ......which is correct??please explain.
Wali
Tony Alicea
Desperado
Sheriff

Joined: Jan 30, 2000
Posts: 3222
    
    5
OR is the operative keyword.
You can add a PopupMenu to any component:
public void [Component].add(PopupMenu popup)
Adds the specified popup menu to the component.


Tony Alicea
Senior Java Web Application Developer, SCPJ2, SCWCD
Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
Thanks Tony,I got it
Wali
 
GeeCON Prague 2014
 
subject: Which AWT component can contain a meu bar