• 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

addition of components

 
Ranch Hand
Posts: 169
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
is there any rule for addition of components based on their
heirarchy?
ex: menu is a subclass of menu item, so menu can be added to menu
item.
can some one give more inputs please...
- Thanks
 
Desperado
Posts: 3226
5
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Not really. Any component can be added to a Container. Except that you cannot add a Window (which is a Container which is a Component) to a Container. Window, of course, includes Frame, Dialog and FileDialog.
BTW, MenuComponent is not related to Component (except for the fact that they both directly descend from Object).
I have a page (from Sun) with the AWT hierarchy.
reply
    Bookmark Topic Watch Topic
  • New Topic