JDK Demos (original) (raw)
Applets
Demonstration applets and source code are available at:
- Demo applets and source code on java.sun.com website
- Demo applets and source code in the JDK installation
demo/applets
directory
To run the applets, use your browser to go to the HTML page and click on the applet link, or use AppletViewer to open the HTML page.
Running an applet in a browser requires the JavaTM Plug-in, which is installed by default with the JDK and JRE. The AppletViewer is provided with the JDK, at bin\appletviewer. For information about how to use the AppletViewer and other JDK tools, see JDK Tools and Utilities.
Applications
Applications and sample code are also available in the JDK installation. These demonstrate various features of the Java 2 platform. The available demos are described in the following sections.
JFC Applications and Applets
These applications and applets, located in the JDKdemo/jfc directory, demonstrate Swing and Java 2DTM technology.
Java Platform Debugger Architecture
The demo/jpda/examples.jar file in the JDK contains JPDA examples, including source code for the jdb Java Debugger and the prototype javadt GUI debugger.
The Poller Demo (SolarisTM Operating System only)
This demo, located in the JDK demo/jni/Poller directory, demonstrates access to the input/output multiplexing functionality from the Java programming language. See the Solaris poll man page.
Additional Applications and Applets
Additional applets and applications may be found at:
- Guide to Features - Examples are included in the documentation for particular features.
- Applets Page - Located on Sun web site
- The Java Tutorial - Located on Sun web site