From c0e5d360aa9be1b432c3bd947c51cb7d368c3100 Mon Sep 17 00:00:00 2001 From: TRC9696 Date: Mon, 30 Jan 2023 16:40:32 +0100 Subject: [PATCH] Added the back Button to the GUI --- src/main/java/game/StartTicTacToeGame.java | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/src/main/java/game/StartTicTacToeGame.java b/src/main/java/game/StartTicTacToeGame.java index e1a9dd3..f789fe4 100644 --- a/src/main/java/game/StartTicTacToeGame.java +++ b/src/main/java/game/StartTicTacToeGame.java @@ -98,6 +98,15 @@ public class StartTicTacToeGame implements ActionListener{ button9.setBounds(500, 400, 100,100); button9.addActionListener(this); gui.Frame.add(button9); + + backButton = new JButton(); + backButton.setBackground(Color.white); + backButton.setBounds(350,400, 100,50); + backButton.addActionListener(this); + backButton.setVisible(false); + backButton.setFont(new Font("arial", Font.PLAIN, 16)); + backButton.setText("Zurück"); + gui.Frame.add(backButton); }