This is the simple example that I showed in class. You can see it running by launching example1.html.

The source files are and the support class that it extends,

Once you have the Java 1.6 SDK installed on your computer, then you can compile from the command line as follows:

javac -classpath . -source 1.2 -target 1.1
This will create the file "example1.class".


You can run the applet from the command line via:

appletviewer example1.html
or or course you can just go to example1.html in your web browser.