Browse Source

Added the second Button to the GUI

master
TRC9696 2 years ago
parent
commit
30e0b0fe1f
  1. 8
      src/main/java/game/StartTicTacToeGame.java

8
src/main/java/game/StartTicTacToeGame.java

@ -50,6 +50,14 @@ public class StartTicTacToeGame implements ActionListener{
button.setBounds(200, 100, 100,100); button.setBounds(200, 100, 100,100);
button.addActionListener(this); button.addActionListener(this);
gui.Frame.add(button); gui.Frame.add(button);
button2 = new JButton();
button2.setBackground(Color.white);
button2.setBounds(350, 100, 100,100);
button2.addActionListener(this);
gui.Frame.add(button2);
} }

Loading…
Cancel
Save