Applet Shape Example 1
The source code:
ShapeTester.java
Shape.java
Rectangle.java
Square.java
Ellipse.java
Circle.java