Comparing Swing and AWT: Unraveling the Distinctions in Java GUI Frameworks

AWT | Swing |
It is API to develop GUI applications in Java | Swing is a part to foundation classes to create GUI in java |
In AWT components are heavy weight | In swing components are lightweight |
Execution time is more in AWT than Swing | Execution time in swing is less than awt. |
Components of AWT are platform dependent | Components of swing are platform independent |
AWT components require java.awt package | Swing package require javax.swing |
AWT has less functionality compared to swing | Swing has more functionality compared to AWT |
AWT provides less powerful components to create GUI | Swing provides more powerful components to create GUI |
AWT is also called as Abstract window toolkit | Swing is a part of Java foundation classes and it in a part of oracle JFC |
Subscribe to my newsletter
Read articles from Sai Sahith Polimera directly inside your inbox. Subscribe to the newsletter, and don't miss out.
Written by
