CSC 211

Spring, 2003

Assignment 7

Applets

Due: 11:59pm, Monday, June 9th


Purpose
: This assignment asks you to write two simple applets.

Procedure:

1. Write an applet called ChessBoard that displays an 8 by 8 board with squares alternating in color between red and white (or any other two colors you choose).

2. Write an applet called CenterName that centers your name both horizontally and vertically.  Use the getHeight method of the FontMetric class to determine the height of characters in a font.  The name may be in any font you choose.

What to submit: Through COL, submit a zip file called Assignment7.zip.