An Exercise For You! Passing parameters to an Applet.

Modify the Chess Applet, written earlier in the section called “ChessApplet - An Applet for you to try!” to:

It should look like Figure 7.7, “The ChessSolution applet with a square Size of 2, 10, 20 with a reversal in starting colour.”.

Figure 7.7. The ChessSolution applet with a square Size of 2, 10, 20 with a reversal in starting colour.

The ChessSolution applet with a square Size of 2, 10, 20 with a reversal in starting colour.The ChessSolution applet with a square Size of 2, 10, 20 with a reversal in starting colour.The ChessSolution applet with a square Size of 2, 10, 20 with a reversal in starting colour.