From b2075bbab30a61d3f83caf827b33ba98e3630a55 Mon Sep 17 00:00:00 2001 From: Yazan Alaamer Date: Wed, 25 Jan 2023 10:45:45 +0100 Subject: [PATCH] refactoring: disable user to edit main text area --- src/main/java/game/StartDarkSoulsGame.java | 1 + .../compile/default-compile/inputFiles.lst | 20 +++++++++---------- .../default-testCompile/inputFiles.lst | 10 +++++----- 3 files changed, 16 insertions(+), 15 deletions(-) diff --git a/src/main/java/game/StartDarkSoulsGame.java b/src/main/java/game/StartDarkSoulsGame.java index 85917c9..378f294 100644 --- a/src/main/java/game/StartDarkSoulsGame.java +++ b/src/main/java/game/StartDarkSoulsGame.java @@ -84,6 +84,7 @@ public class StartDarkSoulsGame { mainTextArea.setForeground(Color.white); mainTextArea.setFont(normalFont); mainTextArea.setLineWrap(true); + mainTextArea.setEditable(false); mainTextPanel.add(mainTextArea); choiceButtonPanel = new JPanel(); 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 f4e91a4..fd44bf8 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,10 +1,10 @@ -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\yazan\MiniGameProject\src\main\java\game\StartDarkSoulsGame.java +C:\Users\yazan\MiniGameProject\src\main\java\game\runGame.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\gui.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\StartGameGui.java +C:\Users\yazan\MiniGameProject\src\main\java\game\loadNextQuestion.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\ActionHandler.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\GameGui.java +C:\Users\yazan\MiniGameProject\src\main\java\main.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\GameGuiInterface.java +C:\Users\yazan\MiniGameProject\src\main\java\Gui\GuiInterface.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..470a3c7 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\yazan\MiniGameProject\src\test\java\game\loadNextQuestionTest.java +C:\Users\yazan\MiniGameProject\src\test\java\Gui\guiTest.java +C:\Users\yazan\MiniGameProject\src\test\java\Gui\GameGuiTest.java +C:\Users\yazan\MiniGameProject\src\test\java\game\runGameTest.java +C:\Users\yazan\MiniGameProject\src\test\java\Gui\ActionHandlerTest.java