• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

AWT question

 
Anonymous
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which of the following may container can have?
a. container
b. component
c. applet
d. frame
e. menuItem
 
deekasha gunwant
Ranch Hand
Posts: 396
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi VR,
a,b,c,d are correct. because a container can have only components and all a,b,c,d are components but menuItem is a menuComponent which can't be added to a container

regards
deekasha
 
Erin Waite
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I think the answers a, b, c and e are correct.
d is incrrect because a frame is a top-level window and a top-level window cannot be incorporated into other components.
e is correct because a menu-bar can be attached to a Frame object which is a container, a menu-bar can contain pull-down menus and MenuItem objects can be added to menus.

Originally posted by VR:
Which of the following may container can have?
a. container
b. component
c. applet
d. frame
e. menuItem

 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic