(Display a tic-tac-toe board with images) Rewrite Programming Exercise 12.7 to display an image in a JPanel instead of displaying an image icon in a JLabel.
Ref prb:
(Game: display a tic-tac-toe board ) Display a frame that contains nine labels. A label may display an image icon for X or an image icon for O, as shown in Figure 12.27c. What to display is randomly decided. Use the Math.random() method to generate an integer 0 or 1, which corresponds to displaying an X or O image icon. These images are in the files x.gif and o.gif.
We need at least 10 more requests to produce the solution.
0 / 10 have requested this problem solution
The more requests, the faster the answer.