Lab14: Tic-Tac-Toe using event based applet

In lab 5 you saw how to write a program which plays Tic-Tac-Toe with the user (player). In that program user's moves were typed as text through the terminal window.

In this lab you are asked to write an applet to play Tic-Tac-Toe, your program should display the play grid with actual "circles" and "crossses" in the applet window. (Circle/crosss denotes if the square is taken by computer/user.) The user should be able to play his/her move by pressing the mouse on an empty square in the play grid. An appropriate message should be displayed when the game ends.

Note that you may use the same code, as in lab 5, for "playing strategy" of your program.