Building an applet from scratch requires extensive programming in Java, a rather lengthy undertaking. Acquiring and modifying an existing applet for your own purposes is, however, rather easy to do. As an example, see if you can take my simple "My Wandering Mind-1" and modify it to run in your browser. You need to:
Java in my public_html
to a subdirectory named
Java2 in your public_html directory.
You do so as follows:
Java subdirectory inside your own public_html
directory by typing: mkdir Java2 . Then copy the
files to your Java2 directory:
cp ~larryg/public_html/Java/Graph.java Java2
cp ~larryg/public_html/Java/larry-mind1.html Java2
homer% rlogin ovid
ovid% cd public_html/Java2
javac -deprecation Graph.java "-deprecation" parameter tells Java
to accept an earlier Java syntax.
index.html file, by inserting the string:
<TITLE> some title here </TITLE>
Some text and HTML here
<APPLET attributes>
<PARAM NAME=parm VALUE=value,...>
<PARAM NAME=parm VALUE=value,...>
Alternate text here (for Java challenged browsers)
</APPLET>
In this case my applet looks like this:
<TITLE>My Wandering Mind-1</TITLE>
<H1>My Wandering Mind-1</H1>
Below is a graphic applet with a number of nodes and their
relationships, illustrating my most basic interests!
<HR>
<APPLET CODE="Graph.class" WIDTH=600 HEIGHT=400>
<PARAM NAME=edges VALUE="Larry-Food,Larry-MoreFood,Larry-LotsOfFood">
<PARAM NAME=center VALUE="Larry">
</APPLET>
<HR>
(R561) Modifying a Simple Java Applet
© Copyright 1997 UW C&C