• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Containers

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I saw this on a different discussion group and I was wondering if someone would explain the answer to me.
What can be added to a container?
Select all that apply.
a) Frame
b) Component
c) Container
d) MenuComponent
e) Panel
Can a Container be added to a container?
Would the answers be a, b, d, e
Thanks for your help.
 
Trailboss
Posts: 22952
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would say that the answer is b, c and e.
A container can be added to a container. But a MenuComponent is not a Component. And I think Frame is something that is not kept within a container.
 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't agree with you Paul. Frame can be added to container as frame itself is container
 
paul wheaton
Trailboss
Posts: 22952
IntelliJ IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Frame is a container, but Frame is also a window. How do you add a window to a container?
Have you tried it?
 
I have always wanted to have a neighbor just like you - Fred Rogers. Tiny ad:
how do I do my own kindle-like thing - without amazon
https://coderanch.com/t/711421/engineering/kindle-amazon
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!