| CSCI A201/A597
Assignment Seven Prototype
Spring 2000
|
Here's how your assignment 7 (seven) should behave.
Your DrawingWindow should contain a grid like this:
It's up to you how many lines and columns it will have.
The functionality should be as follows:
- if the user clicks with the mouse on one
of the cells in the grid then that cell becomes
red
- if the user clicks with the mouse in the
white part of the two-color rectangle at the top
(which also has a half represented in blue) then
the grid is cleared and the original pattern is
shown (grid of white squares)
- if the user clicks in the blue part of the
two-color rectangle the program stops, and the
window is closed
- otherwise nothing happens