

Using this way, Swing has pluggable look-and-feel architecture.Įvery user interface considers the following three main aspects:

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.

Swing component follows a Model-View-Controller architecture to fulfill the following criteria. It is build upon top of AWT API and acts as replacement of AWT API as it has almost every control corresponding to AWT controls. Swing API is set of extensible GUI Components to ease developer’s life to create JAVA based Front End/ GUI Applications. JAVA provides a rich set of libraries to create Graphical User Interface in platform independent way. Swing was developed to provide a more sophisticated set of GUI components than the earlier Abstract Window Toolkit (AWT). It is part of Oracle’s Java Foundation Classes (JFC) – an API for providing a graphical user interface (GUI) for Java programs.
