Java Programming with JavaTools
JavaTools is a set of Java definitions constructed to simplify
the task of learning to program in Java. It provides methods
for drawing and event handling intended to simplify the process
or writing simple, interactive applets. For each lab that
involves writing Java code, we will provide a "starter" folder
containing:
- A ".jar" file containing a copy of "JavaTools";
- A ".java" file containing a skeletal
java program that you will complete during the lab;
- A Metrowerks project file. This
is the file which you should open (double-click on) to
start working on your program. It is configured to
tell Metrowerks how to combine your code with JavaTools
to produce a complete applet. This is the only file
in the starter folder whose name you can safely change; and
- A "DisplayApplet.html" file which contains the minimal
HTML needed to view your applet through a browser.
During each lab, you will make modifications to the ".java"
file and test their behavior using the "Run" item in the
Metrowerks "Project" menu. When you are happy with the behavior
of your applet, you will include it in an appropriate page on your
web site using the APPLET tag.