Download as pdf or txt
Download as pdf or txt
You are on page 1of 6

Swing

Swing Framework contains a set of classes that provides more powerful and flexible
GUI
components than those of AWT. Swing provides the look and feel of modern Java
GUI. Swing
library is an official Java GUI tool kit released by Sun Microsystems. It is used to
create graphical
user interface with Java.
The javax.swing package provides classes for java swing API such as JButton,
JTextField,
JTextArea, JRadioButton, JCheckbox, JMenu, JColorChooser etc.
Hierarchy of Java Swing classes:
Difference between AWT and Swing:
There are many differences between java awt and swing that are given below.
Features of Swing Toolkit:
1. Platform Independent
2. Customizable:
Swing controls can be customized in very easy way as visual
appearance is independent of internal representation.
3. Extensible
4. Configurable
5. Lightweight:
Swing component are independent of native Operating System's API as
Swing API controls are rendered mostly using pure JAVA code instead of
underlying operating system calls.
6. Pluggable look-and-feel:
SWING based GUI Application look and feel can be changed at run time
based onavailable values.
Thank You…

You might also like