Difference Between AWT and Swing

This post shows the difference between AWT and Java swing.

Difference Between AWT and Swing

1.AWT components are platform-dependent whereas Java swing components are platform-independent.
2.AWT components are heavyweight whereas Swing components are lightweight.
3.AWT doesn't support the pluggable look and feels whereas Swing supports the pluggable look and feel.
4.AWT provides fewer components than Swing. Swing provides more powerful components such as tables, lists, scrollpanes, colorchooser, tabbedpane, etc.
5.AWT doesn't follows MVC(Model View Controller) where model represents data, view represents presentation and controller acts as an interface between model and view. Swing components are lightweight.

Comments