Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Which AWT component can contain a meu bar

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 3226
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Tony,I got it
Wali
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic