(Flip coins) Write a program that displays heads (H) or tails (T) for each of nine coins, as shown in Figure 16.34a–b. When a cell is clicked, the coin is flipped. A cell is a JLabel. Write a custom cell class that extends JLabel with the mouse listener for handling the clicks. When the program starts, all cells initially display H.
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.