Lab 9

This week, you will play with squares in a grid. Download the code below, run the code, and you should see some squares with colors. These squares are just examples, and you should not contain the code related to them. Instead, you should write code to put 5*5 squares in an array and display them on screen.

It should be fine if you don't touch other than Board.java. In such case, you only need to submit Board.java. If you changed other files, submit the changed files as well.

// XXX

This code block between two "XXX" should be deleted

// XXX

Score / Benchmark

1 Get sample code to run, displaying a grid of randomly colored squares. These squares should be stored in an array.

2. Have squares that are clicked upon change color to "lightGray"

3. (extra credit) Clicking within any COLUMN causes it to "rotate," where all the colors slide down one position, and the bottom-most color shows up in the top square.

Submission:

You are encouraged but not required to work with a partner.

Include all authors' names and time of lab in the code.

Submit the .java file(s) by 12 pm (noon) Thursday. You can submit multiple times. But remember we will see the last submission.