• 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
  • Devaka Cooray
  • Knute Snortum
  • Paul Clapham
  • Tim Cooke
Sheriffs:
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Bear Bibeault
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Ron McLeod
  • Piet Souris
  • Frits Walraven
Bartenders:
  • Ganesh Patekar
  • Tim Holloway
  • salvin francis

Diff between light weight & heavyweight comp.  RSS feed

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
As per my understanding awt comp. make a native call to the o/s for creating any awt comp and swings have their own peer classes for creating the comp. So why are AWT comp. called heavyweight comp, when the processing in case of these comp. will be fast whereas swings are called as lightweight comp., when the processing for the same is slow?? can anyone explain me the diff between light weight & heavyweight comp??
whatever I have written above is as per my understanding of awt & swings, please correct me if I am wrong
Thanxs & Rgds
Mack
 
author and iconoclast
Posts: 24203
43
Chrome Eclipse IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The part about heavyweight components having native peers is correct. The part about "fast" and "slow" is just your own theory, and it's not necessarily true. Heavyweight components have larger data structures associated with them -- both Java data structures and native OS data structures -- and are therefore "heavier," hence the name.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!