CS 112 Lab 3
Shapes:  Drawing, Inheritance, & Polymorphism
Due Monday, Feb. 18th 2008

For your third lab, you will create a Java program that draws some shapes.

First, create the following classes:
Next, create a new class ShapePanel, subclass of JPanel that contains the following methods
Finally, create a new class MainPanel, sublcass of JPanel that:
Screenshot

Grading

You will be graded on several criteria:

Program decomposition:  25

Did you break your code into the required classes & subclases, did you use polymorphism to draw the shapes correctly?

Coding standards 10

Be sure to do proper indentation & commenting.  Also, no magic numbers!  Use constants instead.

See the Coding Standards for more information

Working

Program compiles and puts up a window:  20
Contains all required buttons: 20
Buttons correctly put up random shapes 25

Submission

All file(s) required for your project should be in the folder https://www.cs.usfca.edu/svn/<username>/cs112/Lab3/