Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

menu bars and frames?

 
preeti dengri
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,
the ques is from Jxam mock
only frames can contain menu bars or pull down menus???true or false
and what about pop up menus???
need some help on this matter
thanx
 
Nandini Gangopadhyay
Ranch Hand
Posts: 79
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Preeti,
Only Frames can contain MenuBars, this is true....as for PopupMenus, there is a add(PopupMenu p) method in Component class, so PopupMenus can be added to all components, this method is inherited by all components(Button, CheckBox etc) and containers. Correct me if I am wrong.
Nandini
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic