4:21 PM


Swing is a widget toolkit for Java. It is part of Sun Microsystems' Java Foundation Classes (JFC) — an API for providing a graphical user interface (GUI) for Java programs.
Swing components facilities efficient Graphical User Interface (GUI) development. It contains a pluggable look and feel(PL & F). This allows the application to run with native look and feel. The major difference between lightweight and heavyweight components is that lightweight components are always opaque. Swing components comprise of a large percentage of the JFC release. The Swing components toolkit consists of over 250 pure Java classes and 75 interfaces contained in about 10 packages. Swing consists of user interfaces classes and non-user interface classes. The non-user interface classes provide services and other operations for the user interface classes.