$nographic=0; require_once( 'menu.php' ); ?>
Code Hints
Java Code
Some questions have arisen about how to combine different sources
of java code into an applet or application. Here is a posting
from Tyson that may be helpful:
OK, you need to put the DataSet.java file in with the other graph class
files and recompile all the graph package together, at the same time or it
doesn't work. You do that on odin and turing by "javac *.java".
Put ValueControl.java in with the applet file and compile it. I think you
actually have to split up the two classes contained in this file.
Compile ExpNumberFormat.java in the same folder as your applet file.
Compile RunnableApplet.java.
That should do it. It also helps to have the html page that houses the
applet set to house an applet of 700 X 600 pixels. You can change this
later.
- HMCSupport.zip — The
handy input/output class you may have used in CS 5
- Java
Graph Class Library by Leigh Brookshaw. A handy set of
classes to add line and scatter plots to an applet. This
version uses the Java 1.0 event model, which may be
incompatible with some implementations.
- Java Graph Class Library, updated to the
1.1 event model
- RunnableApplet.java
— This file implements an applet that uses the Runnable
interface. It is a shell you can modify to develop an applet
that simulates a physical system or process and provides
periodic screen updates of its progress. This particular
program doesn't do much, but illustrates how to use Leigh
Brookshaw's Java Graph Class Library.
- ValueControl.java —
A labeled text box whose value can be bounded. When the value
is changed by the user, an event reporting the change is
passed to an object you can specify.
- DataSet.java — Modified
version of the DataSet.java file included in Leigh
Brookshaw's graph package. This version of DataSet includes a
boolean flag
public boolean drawLastOnly. When
set, only the last marker of a DataSet is drawn.
- RKF.java — a fourth-fifth
order Runge-Kutta-Fehlberg class for performing numeric
integrations.
- ExpNumberFormat.java
— a small extension of the
NumberFormat
class that handles large and small floating-point numbers.