Difference between ligt weight and heavy weight?

Answer Posted / vishwas saxena

1. Heavy weight components are always Rectangle in shape
while light weight may or may not.

2. Heavy weight components borrows the native screen to
paint their components while light weight render their
components by their own screen painting APIs.

3. They differ from z-indexing to each other, heavy weight
components are always displayed at the top of all
lightweight components.

4. Light weight components are faster in response and
performance.

Is This Answer Correct ?    29 Yes 7 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How to add calendar in java swing using eclipse?

774


What are swing components?

593


What are swing controls?

525


What are the swing components?

496


What is an on stage swing?

543






Is swing an api?

540


Why swing is used in java?

530


Which swing methods are thread-safe?

639


Which layout does swing use by default?

492


What are the two key features of swing?

526


Where is java swing used?

579


What are the features of swing in java?

511


What is jfc swing in java?

522


What is difference between swing and awt?

480


Is javafx better than swing?

503