CIS 068 / 2: Lab-Assignment #4: The Magical Sketchpad

The Magical Sketchpad consists of two windows:

The control window provides a sketchpad, some control-boxes and a button.
The output window consists of four square panels, composed in a way to build one big square area.

Every mouse movement that occurs inside the sketchpad of the control window is transferred to each of the 4 output panels, forcing them to draw a circle at the specified position (see figure above). Therefore it is possible to draw sketches in the output-area by moving the mouse over the sketchpad.

The controls influence the output in the following way:
Each of the 4 output areas is assigned to 3 checkboxes:

The control window's button erases (or cleans) the window of all 4 output-areas.
click here to see the program as an applet.
Circles are drawn pressing (and holding) the left mouse-button while moving the mouse over the blue sketchpad.
Your browser must support javax.swing.

Some hints:

You might have recognized, that this assignment deals with GUI-elements and events. Think about the question, which elements are event-sources, which elements are listeners !


More help will be added to this page after collecting some questions.