Java Swing tutorial is a part of Java Foundation Classes (JFC) that is used to create window-based GUI applications. The Java Foundation Classes (JFC) are a set of GUI components which simplify the development of desktop applications. It is built on the foundation of AWT (Abstract Windowing Toolkit). Swing also uses the same event handling mechanism as the AWT. The javax.swing package provides classes for java swing API such as JButton, JTextField, JTextArea, JRadioButton, JCheckbox, JMenu etc.
|JAVA AWT||JAVA Swing|
|Java AWT components are platform dependent.||Java Swing components are platform independent.|
|AWT components are heavyweight.||Swing components are lightweight.|
|AWT does not support pluggable look and feel.||Swing supports pluggable look and feel.|
|AWT does not follow MVC.||Swing follow MVC (Model View Controller) where model represents data, view represents presentation and controller acts as an interface between model and view.|