From 1e9e6a48c9e342f943e0b97b0f4d9ab88a219e27 Mon Sep 17 00:00:00 2001 From: TRC9696 Date: Mon, 30 Jan 2023 15:39:04 +0100 Subject: [PATCH] Added JFrame and Constructor --- src/main/java/game/StartTicTacToeGame.java | 22 +++++++++++++++++-- .../compile/default-compile/inputFiles.lst | 22 +++++++++---------- .../default-testCompile/inputFiles.lst | 10 ++++----- 3 files changed, 36 insertions(+), 18 deletions(-) diff --git a/src/main/java/game/StartTicTacToeGame.java b/src/main/java/game/StartTicTacToeGame.java index 84fd40b..f363633 100644 --- a/src/main/java/game/StartTicTacToeGame.java +++ b/src/main/java/game/StartTicTacToeGame.java @@ -1,5 +1,23 @@ package game; -public class StartTicTacToeGame { +import java.awt.Color; -} +import javax.swing.JFrame; + +import Gui.gui; + + +public class StartTicTacToeGame{ + + public StartTicTacToeGame() { + gui.Frame.setTitle("TicTacToe"); //kann später weg + gui.Frame.setSize(800, 600); + gui.Frame.setLayout(null); + gui.Frame.setResizable(false); + gui.Frame.setVisible(true); + gui.Frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + gui.Frame.getContentPane().setBackground(Color.BLACK); + + + } +} \ No newline at end of file diff --git a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst index dcad9f5..f86d421 100644 --- a/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst +++ b/target/maven-status/maven-compiler-plugin/compile/default-compile/inputFiles.lst @@ -1,11 +1,11 @@ -C:\Users\Leon\MiniGameProject\src\main\java\game\StartTicTacToeGame.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\ActionHandler.java -C:\Users\Leon\MiniGameProject\src\main\java\game\loadNextQuestion.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\GameGuiInterface.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\gui.java -C:\Users\Leon\MiniGameProject\src\main\java\game\runGame.java -C:\Users\Leon\MiniGameProject\src\main\java\game\StartDarkSoulsGame.java -C:\Users\Leon\MiniGameProject\src\main\java\main.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\StartGameGui.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\GameGui.java -C:\Users\Leon\MiniGameProject\src\main\java\Gui\GuiInterface.java +C:\Users\Halil\MiniGameProject\src\main\java\Gui\GameGui.java +C:\Users\Halil\MiniGameProject\src\main\java\game\runGame.java +C:\Users\Halil\MiniGameProject\src\main\java\game\StartDarkSoulsGame.java +C:\Users\Halil\MiniGameProject\src\main\java\Gui\gui.java +C:\Users\Halil\MiniGameProject\src\main\java\game\StartTicTacToeGame.java +C:\Users\Halil\MiniGameProject\src\main\java\Gui\GameGuiInterface.java +C:\Users\Halil\MiniGameProject\src\main\java\Gui\GuiInterface.java +C:\Users\Halil\MiniGameProject\src\main\java\Gui\StartGameGui.java +C:\Users\Halil\MiniGameProject\src\main\java\main.java +C:\Users\Halil\MiniGameProject\src\main\java\Gui\ActionHandler.java +C:\Users\Halil\MiniGameProject\src\main\java\game\loadNextQuestion.java 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 93bde8b..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,5 @@ -C:\Users\Leon\MiniGameProject\src\test\java\Gui\guiTest.java -C:\Users\Leon\MiniGameProject\src\test\java\game\loadNextQuestionTest.java -C:\Users\Leon\MiniGameProject\src\test\java\Gui\ActionHandlerTest.java -C:\Users\Leon\MiniGameProject\src\test\java\Gui\GameGuiTest.java -C:\Users\Leon\MiniGameProject\src\test\java\game\runGameTest.java +C:\Users\Halil\MiniGameProject\src\test\java\game\loadNextQuestionTest.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 +C:\Users\Halil\MiniGameProject\src\test\java\Gui\ActionHandlerTest.java