Question: Please help me fill some missing text in java programming 1. Complete the program, as shown below, that displays head (H) or tail (T) for

Please help me fill some missing text in java programming
1. Complete the program, as shown below, that displays head (H) or tail (T) for each of nine coins (represented by a group of JButton). When a cell is clicked, the coin is flipped. A cell is a JButton, When the program starts, all cells initially display "H". (10 marks) ripping con H H T H H H import java.awt."; import javax.swing. -1__ //Import the package for event handling public class coinButtonDemo -_2_ { //inherit JFrame and implements the listener private JButton[] buttons ; public CoinButtonDemo() { super("Flipping coins"); 3__ // set the size to 389 * 280 4. _; //set the close operation to EXIT_ON_CLOSE setLocationRelativeTo(null); setLayout(); // set the layout manager to GridLayout buttons = new JButton[9]; 5 for(int 1=0; i
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
