From 3940b691330ae2b16713d343bfc5d09d4d4e7d28 Mon Sep 17 00:00:00 2001 From: TRC9696 Date: Mon, 30 Jan 2023 16:33:18 +0100 Subject: [PATCH] Added the fourth Button to the GUI --- src/main/java/game/StartTicTacToeGame.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/java/game/StartTicTacToeGame.java b/src/main/java/game/StartTicTacToeGame.java index 2a8675d..c4b1e9e 100644 --- a/src/main/java/game/StartTicTacToeGame.java +++ b/src/main/java/game/StartTicTacToeGame.java @@ -61,7 +61,13 @@ public class StartTicTacToeGame implements ActionListener{ button3.setBackground(Color.white); button3.setBounds(500, 100, 100,100); button3.addActionListener(this); - gui.Frame.add(button3); + gui.Frame.add(button3); + + button4 = new JButton(); + button4.setBackground(Color.white); + button4.setBounds(200, 250, 100,100); + button4.addActionListener(this); + gui.Frame.add(button4); }