What is the difference between AWT & Swing?

Answer Posted / rananjai maurya

1--Swing is light weight component and awt is heavy weight component, heavy weight are those which are os dependent.

2--swing is also called as JFC(java foundation classes)and awt stands for abstract window toolkit.

3--swings component require javax.swing package where as awt component require java.awt.

4--A swing has extra component like table tree optionpanel with the class named JTree,JTable,JOption Pane etc.

Is This Answer Correct ?    3 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are heavyweight components? What is lightweight component?

530


Is there any heavyweight component in swings?

513


What do you mean by java swing?

512


Which swing methods are thread-safe?

640


Why swings are used in java?

520






Is swing an api?

540


What is the difference between a scrollbar and a jscrollpane ?

754


What is swing?

597


What is the base class for all swing components?

604


What are the components of swing?

526


Who created the swing?

497


Can a class be it?s own event handler? Explain how to implement this?

538


What are the differences between Swing and AWT?

569


How to move from one page to another in java swing?

610


What is swing package in java?

518