From 02f2d146edd255b57c2aa731dbc65e373fd640ba Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 10:18:53 +0100 Subject: [PATCH] refactoring: Change the name of JFrame to Frame --- src/main/java/Gui/gui.java | 16 ++++++++-------- src/test/java/Gui/guiTest.java | 4 ++-- target/MiniGameProject-1.0-SNAPSHOT.jar | Bin 4305 -> 4792 bytes target/maven-archiver/pom.properties | 2 +- .../compile/default-compile/inputFiles.lst | 1 + 5 files changed, 12 insertions(+), 11 deletions(-) diff --git a/src/main/java/Gui/gui.java b/src/main/java/Gui/gui.java index e92cfc4..e9e9ad9 100644 --- a/src/main/java/Gui/gui.java +++ b/src/main/java/Gui/gui.java @@ -11,7 +11,7 @@ import javax.swing.JLabel; import javax.swing.JPanel; public class gui { - public static JFrame jf; + public static JFrame Frame; public static JButton StartBtn, CloseBtn; public static JPanel Panel; public static JLabel Label; @@ -23,11 +23,11 @@ public class gui { createPanel(); } public void createFrame(){ - jf = new JFrame("Wer wird Millionr"); - jf.setSize(width,height); - jf.setLocationRelativeTo(null); - jf.setResizable(false); - jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); + Frame = new JFrame("MiniGames"); + Frame.setSize(width,height); + Frame.setLocationRelativeTo(null); + Frame.setResizable(false); + Frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); } public void createButtons() { @@ -54,8 +54,8 @@ public class gui { Panel.add(Label,gbc); Panel.add(StartBtn,gbc); Panel.add(CloseBtn,gbc); - jf.add(Panel); - jf.setVisible(true); + Frame.add(Panel); + Frame.setVisible(true); Panel.setVisible(true); } diff --git a/src/test/java/Gui/guiTest.java b/src/test/java/Gui/guiTest.java index 7c8a394..af0d48c 100644 --- a/src/test/java/Gui/guiTest.java +++ b/src/test/java/Gui/guiTest.java @@ -19,8 +19,8 @@ class guiTest { int FrameWitdh = 800; int FrameHeight = 600; //act - assertEquals(FrameWitdh, gui.jf.getWidth()); - assertEquals(FrameHeight, gui.jf.getHeight()); + assertEquals(FrameWitdh, gui.Frame.getWidth()); + assertEquals(FrameHeight, gui.Frame.getHeight()); } } diff --git a/target/MiniGameProject-1.0-SNAPSHOT.jar b/target/MiniGameProject-1.0-SNAPSHOT.jar index dab2b23728815fb4b5a35dc101e2e45acf1e9b2b..a8406a8ab43e42a16c2ca14a5f4a53f720b26a4e 100644 GIT binary patch delta 2299 zcmZuz2{aq%7LKS2BGMMM?@MeEduy4ol}ZTFpeUM#HbHc38GDAY6tz@PYLD7#sVy31 z6m1!5spTokQ`FX`UTdpTJekgP-aGHzbN+k(|DJp9{m;GkeD{t>GvvW`DE1TF02VPZ zcfj(%_n13c_gH*b>XVJPg8|6#()^wLVQV{swmwU)|P^xdVqF@8fMQ4Ps8|{bPJUm<(egeqvR>xr}(pQUJXea5wZLNuR zfk0I~anXW&jFm@m%PTVJNGaMlyf;M1Bo-ViudC6fk<)}<%U7#cT2p%A#9pXVol}Lr zrWH6Y@G0{A+%Utrd>o~XD3kN=3&_G>tu~G&&E57o>)RM*;=@hDNNJlwz@v%JWC_=8 zT~CO-9!z@3H783c3F!^F1!ksCCb|K2T;e))H~pXcU!PHH;0#an??QhW176E%*q4VO zTF5R_Ys4Z_i`xF8G zg{ZdMa5%uc(&JDksopPDQ8Ln1RS=l{6 zD^y#oWLEHMsDHt|iS3-Qq^T+x-nw+(Xx_E(;f}(x?^3M4*r3?5aN@Zzj+lGXE7UrR zKz0FtcIUW8OHCXqG?;{OXXrqaT)^!28|v5L1u9{na*jrm0{Wo zEFvYUMp#>SXohss9ZFE%H&~sj`ay-{@<{W%cZ^2r#50FPt}CU5Z@qmoI)`*Hg8s7E zK4rlnC*9@Zw~_lq{)pj5w<4E4eSa>}up?0Fljnmbva6 zK7^e09B7Vp>zUE~_@Fbpu?u%sOkP$iXQ{PBMs&P&rcG5}@smg;n%;7~R5kCtT-Dy; z-if>kImL6X%uOW&Qm{kbBMe)=(eqOW*bdGk88)tQiHJ=4a?$VBy!>8EdBGYaU$i7DzncJ|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enP) z!xdAH8QbE=?|u!gI~u{!y-CBxYfsI})sW;J3x67jG;!zMMsUr`Zaxf80Qg$hUeuxY z9a{1<7%bg{5eW+43$#3l0^I)-@RI>Y0c(l;=O_+yb6V_&{3um)e0jR7jnmJg=84m_x;! zqTI#_uYO8ux{xf}(vf;urbBB(r!@#fB*=hOA^+D1whzKaDiZ9A2q&pNuzL}fTVVs? ztn`CSusx9G=&cpxCzE>?G9XZ!)V`nbO>97w>CW=(Y2=QrG}e(C;39y%Ls=8OmBn|! zcdz~T1PR*Q>;l*wiaNW0e9?~tiysJ31u4OrJ*aF1_Sza+u`N+5-!A#~RZ=WdY7T#M iK+<=OZu=h)%I<|LY$p<6vRnI#(yk5xfy%e!5A+vCQWM7j diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties index 8d2892b..0961d2b 100644 --- a/target/maven-archiver/pom.properties +++ b/target/maven-archiver/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven -#Fri Dec 30 01:11:12 CET 2022 +#Fri Dec 30 10:15:22 CET 2022 groupId=MiniGameProject artifactId=MiniGameProject version=1.0-SNAPSHOT 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 03f0c51..e26bf8e 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,3 +1,4 @@ C:\Users\Leon\MiniGameProject\src\main\java\Gui\ActionHandler.java C:\Users\Leon\MiniGameProject\src\main\java\Gui\gui.java C:\Users\Leon\MiniGameProject\src\main\java\main.java +C:\Users\Leon\MiniGameProject\src\main\java\Gui\StartGameGui.java