What is the difference between AWT & Swing?

Answer Posted / vinay agrawal

this is vinay agrawal
1. swing is light weight component and awt is heavy weight
component.
2. swing components require javax.swing package where as
awt comonents require java.awt package
3. awt requres native code to execute/run but not swings
4. swing are also known as JFC's
5. swing is a look and feel component and it is purely
developed in java.

Is This Answer Correct ?    3 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are the components of java swing?

521


Which window contains the swing controls?

528


Why would you use swingutilities.invokeandwait or swingutilities.invokelater?

548


What method is used to specify a container's layout?

514


What is jfc? What are the features of jfc?

616






Why are swing components called lightweight?

541


What are the features of swing in java?

511


What are the differences between Swing and AWT?

569


What is swing delegation event model in java?

549


Why swing is better than awt?

562


How to add calendar in java swing using eclipse?

775


Explain the difference between awt and swt.

547


How to print in java swing application?

504


What is the difference between a scrollbar and a jscrollpane ?

754


What are heavyweight components? What is lightweight component?

530