2 Player Slime Volleyball

Originally written by Quin Pendragon who generously made the source code available for other to use.

The source code for this version of Slime Volleyball

Java applets

Java applets are slightly different from normal java applications. Java applets are designed to be run in a web browser.
Instead of a main() method, java applets have a run() method. For security reasons java applets are not allowed write/save information on your local machine.

Compiling a Java applet

Java applets are compiled the same way as java applications. You need to have a java compiler installed on your computer.
Go to the command line and at the prompt type:
javac filename.java
(where filename.java is the name of the your java file).

Running a Java applet

To run a java applet you need to embed it in a web page using the applet tag. <applet code="filename.class" height="100" width"400" > </applet>
You dont necessarily need the height and width values, depending on what your applet does but it is better to use them as it allows some browsers to draw the rest of page more quickly.
When you have put the applet in a web page you can then run it in a java enabled browser or using the appletviewer program that comes with the java compiler.
Go to the command line and at the prompt type:
appletviewer appletpage.html