CIT 591 First Java Assignment
CIT 591, David Matuszek, Fall 2002

There are two parts to this assignment:

  1. Step through the BlueJ tutorial and, as you step through it, make a note of any differences you find between the way the BlueJ program works, and the way the tutorial says that it works. (Any differences you find should be minor.)

    Don't worry if you don't understand everything in the tutorial--it assumes that you already know some Java.

    Please turn in a list of the differences you found. You don't have to be paranoid about this; I just want to make sure that you have tried the tutorial. My experience is that different people find very different things, and that's OK.

  2. Take the Applet that I developed in class and modify it to display a picture of your own.
    • Use at least 15 commands to draw your picture.
    • Use at least three colors in your picture, including one you define yourself, with numbers.
    • See your textbook for a partial list of drawing commands.
    • You will not be graded on artistic merit, but your program should draw something that is at least recognizable. (No abstract art please.)

     

For your convenience, here is the Applet that was developed in class. The only difference is that I have changed the comment to a javadoc-style comment; please put your own name in place of mine.

import java.applet.Applet;
import java.awt.*;
         
/** CIT 591 example
 * @author David Matuszek
 */
public class Drawing extends Applet {
    public void paint(Graphics g) {
        g.setColor(Color.blue);
        g.fillRect(20, 20, 50, 30);
        g.setColor(Color.red);
        g.fillRect(50, 30, 50, 30);
    }
}

Due date: Wednesday, September 18.

Turn in: Both parts of the assignment. We will discuss in class how to go about turning in programs.

Please be sure your name is easily visible on all parts.