Homework 9: Shape Component

Due: 2:10pm, Friday, November 6. Submit to Sauron.

Using Swing, build an application that allows the user to add circles, squares, and triangles to the screen. Users should be able to select their desired shape and then click a location in the window where the new shape is to appear.

The program you write should have the following behavior when executed.

The file ClickComponent.java contains a custom component that should be modified to achieve the goals of this assignment.