Assignment #7 CSI205 Assigned: 11/29/11 Due: 12/06/11 Assignment: Code your assignment #6 to run as a Java applet. All specifications for assignment #6 remain in effect (comments, neatness, correctness, etc). The source code/class you create for assignment #7 should be named TurtleGUI.java (you need to make a few slight modifcations to your TurtleGUI.java file from assignment #6 to turn it into an applet) In order to grade your assignment, you must place your applet (.class files), the html code to run your applet, and an archive containing your Turtle and Button Handler class files in a directory that we can access with a web browser. Here are the required steps: 1. At the unix prompt, type startweb The startweb command only needs to be run once, ever. This command creates a subdirectory named public_html. **All files for this assignment should be created in the public_html subdirectory** 2. Create your TurtleGUI.java file (your source code) in this directory with emacs or the editor of your choice. 3. Compile your .java file. This will create the .class files. (TurtleGUI.class, TurtleGUI$1.class, and TurtleGUI$1ButtonHandler.class) 4. copy the Turtle.class file from the class folder into the public_html subdirectory. 5. create a java archive, named turtle.jar, that will contain your Turtle.class, TurtleGUI$1.class, and TurtleGUI$1ButtonHandler.class files. The command to create the archive is: jar -cf turtle.jar Turtle.class TurtleGUI$1.class TurtleGUI$1ButtonHandler.class 6. Use the editor of your choice to create an html file named TurtleGUI.html Place the following html code/tags in this file: your name

When a browser accesses this html file, it instructs the browser to run your applet and to download the "supporting" class files contained in the archive turtle.jar 7. At the unix prompt, make your files accessible to a browser by typing setweb 8. Test your applet by accessing a web browser (Internet Explorer, etc.) Use the following URL www.albany.edu/~login/TurtleGUI.html Replace login above with your unix login name, for example www.albany.edu/~aa2346/TurtleGUI.html 9. When you are satisfied that your applet is working correctly, submit your .jeva file with the turnin command: turnin-csi205 -c csi205 -p prog7 TurtleGUI.java