Computer Lab #2

This lab illustrates the following concepts:

Some useful links:

Sun libraries documentation

UW library documentation

 

1) Swing

First example:

Second example:

 

2) Object clone and equals methods

Sample: Drawing.java, MyPolygon.java and add a unit test class

Solution: Drawing.java, MyPolygon.java, TestMyPolygon.java