This week's book giveaway is in the OCAJP forum.
We're giving away four copies of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) and have Khalid A Mughal & Rolf W Rasmussen on-line!
See this thread for details.
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

doubt in awt components

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
This is a question from exam cram.
Q.Which of the following AWT components can have a menu,either as a menu bar or pop-up menu,attached to it?
A.Frame
B.Window
C.Applet
D.Panel
I think the answer is only A.But the key ans. is A,B,C,D.
Why is it so?Please help me.Thanks in advance.
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
anyone help me
 
hemanshow
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
A B C D is right. Popup menu can be added to all.
Reason is that all of these inherit java.awt.Component and Component implements java.awt.MenuContainer
 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thanks.What about menu and menubar.
I think only frame can have a menubar and no idea about menu.Please help.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic