|
The Swing package is part of the Java Foundation Classes (JFC),
which encompasses a group of features to build GUIs. Another API library for creating GUIs is the
Abstract Window Toolkit (AWT) provided with the JDK 1.0
and 1.1 platforms. Although the Java 2 Platform still supports the AWT
components, you are strongly encouraged to use Swing components instead.
The Swing
Connection is an online magazine with an archive of articles that
contain code samples. Topic categories include About Swing, Working
with Swing Components, Putting it all Together, The Swing Text Package,
and The PLAF Papers - About the Pluggable Look & Feel.
Accessibility
Accessibility technologies make the graphical components of a program's user interface
available to screen readers, pointing devices, and other assistive technologies used by people with
disabilities.
- AccessApplet.java
is an accessible applet. Accessibility technologies make the graphical components of a program's user interface
available to screen readers, pointing devices, and other assistive technologies used by people
with disabilities.
For supporting information see
What's New with
Accessibility. Accessibility technologies make the graphical components of a program's user interface
available to screen readers, pointing devices, and other assistive technologies used by people with
disabilities.
- AccessSimpleButton.java
sets an accessible name and description on a button component.
For supporting information see
What's New with
Accessibility.
- AccessSimpleButtonRel.java
displays a label and buttons, and specifies their accessible relationships.
For supporting information see
What's New with
Accessibility.
- ClipBoardExample.java
shows how to implement a copy and paste operation.
For supporting information see
New Data Transfer
Capabilities.
- DragOne.java
shows how to implement drag and drop.
For supporting information see
New Data Transfer
Capabilities.
- DragTwo.java
implements one draggable text label, one draggable image label, one droppable image label, and a text field for
dropping the text.
For supporting information see
New Data Transfer
Capabilities.
- ImageCopy.java
shows how to copy images.
For supporting information see
New Data Transfer
Capabilities.
- ImageSelection.java
shows how to transfer images.
For supporting information see
New Data Transfer
Capabilities.
- Ferret.java
follows the mouse pointer as it moves across a user interface. When the mouse pointer points at a component in the
interface, Ferret gets the accessible information for the component. This task is also important for
assistive technologies such as hands-free pointing devices.
For supporting information see
What's New with
Accessibility. Accessibility technologies make the graphical components of a program's user interface
available to screen readers, pointing devices, and other assistive technologies used by people with
disabilities.
- SimpleIconButton.java
shows how to specify an accessible description for an icon, retrieve the icon's description, and retrieve
information about the icon's height and width.
For supporting information see
What's New with
Accessibility. Accessibility technologies make the graphical components of a program's user interface
available to screen readers, pointing devices, and other assistive technologies used by people with
disabilities.
- SimpleTable.java
makes information about a table's data and changes to that data accessible.
For supporting information see
What's New with
Accessibility. Accessibility technologies make the graphical components of a program's user interface
available to screen readers, pointing devices, and other assistive technologies used by people with
disabilities.
Using Swing Components
|