What is the difference between AWT & Swing?
Answer Posted / java learner
Main differences:
1. Awt components are heavy weight whereas swing components are light weight, heavy weight are those which are os dependent.
2. A swing has extra components like table,tree,optionalpanel with the class named JTree,JTable,JOptionalPane etc.
3. Swing components support MVC (model,view,control architecture) whereas awt components support Delegate Event Model.
4. Swing components provide dynamic look and feel whereas awt components provide static look and feel.
the awt is the base, its components are heavy weight as they are operating system dependent.To solve this problem we introduce swing
the swing self built components which are not inherited from awt are light weight .Still a major problem with swing
is that the components it inherited from awt are atill heavy this problem is solved by hidden container ContentPane which u can get by method getContentPane()
| Is This Answer Correct ? | 66 Yes | 23 No |
Post New Answer View All Answers
What is the class in swing to change the appearance of the frame in runtime?
What are heavy weight components ?
Which types of components are used in designing swing based gui?
What is difference between awt and swing?
What is the mean of swing?
What is awt and swing in java?
What is import javax swing * used for?
How to perform action on button in java swing?
How to link two forms in java swing?
Which layout does swing use by default?
What is java awt and swing?
Is swing still used?
What are the benefits of swing over awt?
Is swing better than awt?
What is the design pattern that java uses for all swing components ?