Tuesday, January 29, 2008

JFC and Swing :

JFC is short for Java Foundation Classes, which encompass a group of features for building graphical user interfaces (GUIs) and adding rich graphics functionality and interactivity to Java applications.

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 includes GUI widgets such as text boxes, buttons, split-panes, and tables.

Swing widgets provide more sophisticated GUI
components than the earlier Abstract Window Toolkit. They are designed to be consistent across all platforms, unlike AWT widgets, which map directly to the current platform's graphics interface without modification. Swing supports a pluggable look and feel by using the current platform's graphics interface to achieve consistency through modifications made by additional API calls. This means the application can use any supported look and feel on any platform. The disadvantage of lightweight components is slower execution. The advantage is uniform behavior on all platforms.