The Java Foundation Classes (JFC) are a set of GUI components which simplify the development of desktop applications. Swing provides more powerful components such as tables, lists, scrollpanes, colorchooser, tabbedpane etc.ĪWT doesn't follows MVC(Model View Controller) where model represents data, view represents presentation and controller acts as an interface between model and view. Java swing components are platform-independent.ĪWT doesn't support pluggable look and feel. There are many differences between java awt and swing that are given below. The javax.swing package provides classes for java swing API such as JButton, JTextField, JTextArea, JRadioButton, JCheckbox, JMenu, JColorChooser etc.
Unlike AWT, Java Swing provides platform-independent and lightweight components. It is built on the top of AWT (Abstract Windowing Toolkit) API and entirely written in java. Java Swing tutorial is a part of Java Foundation Classes (JFC) that is used to create window-based applications.