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
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.