Lab 2 Assignment
In this lab, you will learn about Java's event handling features.
- Here is a skeleton program for CircleSquare.java. Complete the functionality described in the file.
lab.
- Here is a working version of the CircleSquare applet for comparison.
- Demo your completed applet for your TA.
- For an additional challenge, modify the applet in the following ways:
- Allow the user to be able to "move" the drawn object by clicking in several places on the canvas.
- Allow the user to draw several objects of a particular type on the canvas. Either clicking on one of the buttons will erase the canvas, or add an erase button to handle this feature. Hint: You'll need a vector to hold all of the locations where an object is drawn. Redraw the entire vector each time a new object is added.