File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

doubt in awt components

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • 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
  • 0
  • send pies
  • Quote
  • Report post to moderator
anyone help me
 
hemanshow
Greenhorn
Posts: 25
  • 0
  • 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
  • 0
  • 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.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic