Elements of Graphics: Assignment Zero
Due MIDNIGHT, Monday January 29

The purpose of this assignment is to get us all to work through the mechanics of bringing up a window and drawing something in Java using either CodeWarrior or BlueJ, and handing in an assignment in the Elements Lab. If you intend to work on a home computer as well as in the lab, you should use this time to install the SDK (Sun's Java development tools) and CodeWarrior or BlueJ on your home machine, if necessary. The assignment is to draw something using the shapes and colors built into the Graphics2 class and the java.awt.geom package.

Here are two files. ApplicationFrame.java is the class which defines a window, shown on page 8 in Knudsen's Java 2D Graphics book. I've added some comments. FirstFrame.java extends ApplicationFrame to actually put the window up on the screen and draw something in it.

The assignment is: