Java swing short explanation-Difference between AWT and Swing
Java Swing
Java swing is a part of Java Foundation Classes(JFC) and is used to create various applications.
Swing is an API for providing a graphical user interface (GUI) for Java programs.
It offers much-improved functionality over AWT.Swing components requires javax.swing package.
What is JFC?
JFC is the set of GUI components that simplify desktop Applications.
Features Of Swing Class
Pluggable look and feel.
Uses MVC architecture.
Lightweight Components.
Platform Independent.
Swing controls can be customized in a very easy way as visual appearance is independent of internal representation.
Swing provides a rich set of advanced controls like Tree TabbedPane, slider, colorpicker, and table controls.
Acronyms to remember in Java programming:
GUI stands for Graphical User Interface
API stands for Application Program Interface
AWT stands for Abstract Window Toolkit
MVC stands for Model View Controller.
JFC stands for Java Foundation Classes
Difference between AWT and Swing:
Components of AWT are heavy weighted and platform-dependent.
But the components of Java Swing are lightweight and platform-independent.
This is the main difference between these two.
Java Swing has more functionality as compared to AWT.
The MVC pattern is supported by Swing but not supported by AWT.
The execution time of Swing is less than AWT.
Comments
Post a Comment