Examples of Using the JDK 1.1 AWT
This page contains links to examples
(applets and their source code)
of using new features in the JDK 1.1 AWT.
These examples were provided by the AWT team.
Note:
These examples do not run in 1.0-based browsers!
They work only in 1.1-based viewers,
such as the latest version of
HotJava
or the
JDK Applet Viewer.
- Lightweight Components
Includes general instructions for creating and using
lightweight components.
Contains applets that show off the following lightweight components:
round buttons, Openlook buttons,
spinners, and gauges.
- JDK 1.1 Event Examples
Includes examples of handling mouse, mouse motion, and
window events using inner classes (anonymous or named).
Also shows how to redispatch events.
- Unicode
(and using an inner class for event handling)
Note:
This example doesn't fully work under the 1.1beta3 release,
since Symbol and Zapf Dingbat mapping to Unicode characters
isn't supported until after beta3.
Looking for other examples?
Some of the
Demonstration Applets and Applications
have 1.1 versions.
For the latest information on the AWT, consult
The AWT Home Page.