The file /u/cs217/8/CS217.java contains the skeleton for a simple Java applet. This code handles all the necessary Java thread management. Your job is to write the init and paint methods along with any auxiliary methods needed by your animation. init is called once when the applet starts up. paint is called when the applet starts up and then again every 100 milliseconds (the repainting rate is determined by the parameter to Thread.sleep in the run method).
The Java compiler and assorted tools are available in /opt/java/bin on Yuma. To compile your java applet:
javac CS217.javaTo test your applet, copy the file CS217.html to your directory and run
appletviewer CS217.htmlYou may surf the net to looking for ideas for cool animations, but you may not use Java code written by anyone else in your animation.
/u/cs217/bin/submit 8 CS217.javaDue: submitted by 11:59pm, Tues. 5/14.