Homework #3: Java Applet
Due Fri Sept 20, midnight
The goal of this homework is to
gain experience in developing user interfaces in Java and Swing.
Develop a
simple paint applet that enables users to paint pictures using the mouse.
User required features are:
- painting using a paintbrush tool (by click-and-drag on the painting
canvas).
- erasing with an eraser tool (similar interaction to paintbrush, like
painting with background color).
- unlimited undo of paint or erase actions.
- controlling the color of the paint for the paintbrush.
- controlling the width of the paintbrush and eraser with a slider.
- clearing the canvas.
- show an "About" popup dialog box that displays your name.
Also, the applet main window containing the paint area must:
- be embedded in a web page, not a popup frame.
- resize to fill the browser when the browser window is resized.
- not lose the current painted picture when browser window is resized or
manipulated in any way.
Make a web page that contains the applet. Put the page and compiled applet on
your filebox (or some other accessible place). Please do not post the
*.java files publicly. Send an email to GTA
Beth with subject line "HCI homework3" that
contains the following information:
- your name
- your PID
- URL to your web page containing your applet.
- your *.java files and *.html file attached.