|
First Java
Assignment |
There are two parts to this assignment:
I have not yet determined the best way for you to hand in your program. I hope to have a good answer for that on Monday.
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 where I
have indicated.
import java.applet.Applet;
import java.awt.*;
/** CIT 591 example
* @author (Please put your own name here)
*/
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 19.
Turn in:
Drawing.java,
Drawing.class, and Drawing.html. If you used BlueJ, you
should also have files Drawing.ctxt, bluej.pkg,
bluej.pkh, and README.TXT.Please be sure your name is easily visible on all parts.