• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Containment Hierarchy

 
Ranch Hand
Posts: 1609
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
With reference to sun's tutorial

Sun's Tutorial


To appear onscreen, every GUI component must be part of a containment hierarchy. A containment hierarchy is a tree of components that has a top-level container as its root. We'll show you one in a bit.



What does containment hierarchy here mean? Does it mean the class-hierarchy or hierarchy of the components being laid out logically? If it is the latter one, where may i find its details?
[ October 12, 2006: Message edited by: Akhilesh Trivedi ]
 
author and iconoclast
Posts: 24207
46
Mac OS X Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
As it says in your quoted text above, "A containment hierarchy is a tree of components that has a top-level container as its root. " It's your second option. Now, perhaps you misused the word "latter" -- it seems like the second one shouldn't need any more information. In general, a containment hierarchy has a JFrame or JDialog (or Frame or Dialog or plain Window) at the top, with some JPanels or Panels or Canvases inside, with some JButtons or JLabels or Choices or any other components inside those -- but you knew that already.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic