Actions

::Swing (Java)

::concepts



{{#invoke:Message box|ambox}}

Example Swing widgets in Java 5 for the X Window System

Swing is a GUI widget toolkit for Java. It is part of Oracle's Java Foundation Classes (JFC) — an API for providing a graphical user interface (GUI) for Java programs.

Swing was developed to provide a more sophisticated set of GUI components than the earlier Abstract Window Toolkit (AWT). Swing provides a native look and feel that emulates the look and feel of several platforms, and also supports a pluggable look and feel that allows applications to have a look and feel unrelated to the underlying platform. It has more powerful and flexible components than AWT. In addition to familiar components such as buttons, check boxes and labels, Swing provides several advanced components such as tabbed panel, scroll panes, trees, tables, and lists.

Unlike AWT components, Swing components are not implemented by platform-specific code. Instead, they are written entirely in Java and therefore are platform-independent. The term "lightweight" is used to describe such an element.<ref>{{#invoke:citation/CS1|citation |CitationClass=book }}</ref>

Swing is currently in the process of being replaced by JavaFX.


Swing (Java) sections
Intro  History  Architecture  Examples  See also  Notes  References  External links  

PREVIOUS: IntroNEXT: History
<<>>

Swing::swing    Javax::which    Model::javadoc    Native::custom    Controls::toolkit    Platform::provides

{{#invoke:Message box|ambox}}

Example Swing widgets in Java 5 for the X Window System

Swing is a GUI widget toolkit for Java. It is part of Oracle's Java Foundation Classes (JFC) — an API for providing a graphical user interface (GUI) for Java programs.

Swing was developed to provide a more sophisticated set of GUI components than the earlier Abstract Window Toolkit (AWT). Swing provides a native look and feel that emulates the look and feel of several platforms, and also supports a pluggable look and feel that allows applications to have a look and feel unrelated to the underlying platform. It has more powerful and flexible components than AWT. In addition to familiar components such as buttons, check boxes and labels, Swing provides several advanced components such as tabbed panel, scroll panes, trees, tables, and lists.

Unlike AWT components, Swing components are not implemented by platform-specific code. Instead, they are written entirely in Java and therefore are platform-independent. The term "lightweight" is used to describe such an element.<ref>{{#invoke:citation/CS1|citation |CitationClass=book }}</ref>

Swing is currently in the process of being replaced by JavaFX.


Swing (Java) sections
Intro  History  Architecture  Examples  See also  Notes  References  External links  

PREVIOUS: IntroNEXT: History
<<>>