From 73f3a89ec7e89a2e370507bbc9094cb04da20225 Mon Sep 17 00:00:00 2001 From: TRC9696 Date: Mon, 30 Jan 2023 16:14:36 +0100 Subject: [PATCH] Added Tic-Tac-Toe Text --- src/main/java/game/StartTicTacToeGame.java | 8 +++++++- .../testCompile/default-testCompile/inputFiles.lst | 1 - 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/src/main/java/game/StartTicTacToeGame.java b/src/main/java/game/StartTicTacToeGame.java index c02b97f..27abe6c 100644 --- a/src/main/java/game/StartTicTacToeGame.java +++ b/src/main/java/game/StartTicTacToeGame.java @@ -1,6 +1,7 @@ package game; import java.awt.Color; +import java.awt.Font; import javax.swing.JFrame; import javax.swing.JLabel; @@ -23,6 +24,11 @@ public class StartTicTacToeGame{ gui.Frame.getContentPane().setBackground(Color.BLACK); - //refactoring sollten nicht die funktionalität ändern + label = new JLabel(); + label.setText("Tic-Tac-Toe"); + label.setForeground(Color.white); + label.setFont(new Font("arial", Font.PLAIN, 30)); + label.setBounds(320,20,500,50); + gui.Frame.add(label); } } \ No newline at end of file diff --git a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst index b57a516..73def08 100644 --- a/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/testCompile/default-testCompile/inputFiles.lst @@ -1,5 +1,4 @@ C:\Users\Halil\MiniGameProject\src\test\java\game\loadNextQuestionTest.java -C:\Users\Halil\MiniGameProject\src\test\java\game\StartTicTacToeGameTest.java C:\Users\Halil\MiniGameProject\src\test\java\Gui\GameGuiTest.java C:\Users\Halil\MiniGameProject\src\test\java\game\runGameTest.java C:\Users\Halil\MiniGameProject\src\test\java\Gui\guiTest.java