• 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

Diff between light weight & heavyweight comp.

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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: 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
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.
reply
    Bookmark Topic Watch Topic
  • New Topic