CSC 112
Ileana Streinu

8. Basic GUI and Graphics

  1. Go over the comments in the code, read them carefully, make sure you read and understand the code that they refer to, and ask the instructor otherwise. At the end of this exercise, you should be able to create simple applets with a few buttons, some graphics and some other simple GUI items.

    Change the comments to the class and the three methods in it, to be adequate for Javadoc and to be more explicit about what the class and methods are doing.
  2. Modify the applet so that the shape options are four: empty and filled, circle and square.
  3. Modify the applet to use some other two colors for painting the shape, each controlled by its own button.