This is the simple example that I showed in class. You can see it running by launching example1.html.
The source files are example1.java and the support class that it extends, BufferedApplet.java
Once you have the Java 1.6 SDK installed on your computer, then you can compile example1.java from the command line as follows:
javac -classpath . -source 1.2 -target 1.1 example1.javaThis will create the file "example1.class".
You can run the applet from the command line via:
appletviewer example1.htmlor or course you can just go to example1.html in your web browser.