Win a copy of Learning OpenStack Networking: Build a solid foundation in virtual networking technologies for OpenStack-based clouds this week in the Cloud/Virtualization forum!
  • 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:
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
  • Devaka Cooray
Sheriffs:
  • Jeanne Boyarsky
  • Knute Snortum
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Ganesh Patekar
  • Stephan van Hulst
  • Pete Letkeman
  • Carey Brown
Bartenders:
  • Tim Holloway
  • Ron McLeod
  • Vijitha Kumara

what is top-level window ?  RSS feed

 
Ranch Hand
Posts: 417
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Class Window is a top-level window
Class Frame is also a top-level window
well what is top-level ?
does this mean that these components or rather containers cannot be stuffed into another container ?
if yes, then why don't they say Top level container ? would that be correct to say ?
 
Gold Digger
Sheriff
Posts: 7610
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

well what is top-level ?
does this mean that these components or rather containers cannot be stuffed into another container ?


Yes. Class container's method addImpl(Component comp,...) throws an IllegalArgumentException("adding a window to a container") in case you try to add a window to a container.


if yes, then why don't they say Top level container ? would that be correct to say ?


Because a container is more general-purpose than a Frame or a Window.
HIH
[ January 22, 2002: Message edited by: Valentin Crettaz ]
 
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!