Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Diff between light weight & heavyweight comp.

 
Mack dang
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
 
Ernest Friedman-Hill
author and iconoclast
Marshal
Pie
Posts: 24212
35
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.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic