From 0530f94ea369b183c925deeccac449ffcf30a84e Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 00:53:52 +0100 Subject: [PATCH] Added Start and Close Button --- src/main/java/Gui/gui.java | 9 ++++++++- target/MiniGameProject-1.0-SNAPSHOT.jar | Bin 2730 -> 3095 bytes target/maven-archiver/pom.properties | 2 +- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/main/java/Gui/gui.java b/src/main/java/Gui/gui.java index 57e24a2..820fbb0 100644 --- a/src/main/java/Gui/gui.java +++ b/src/main/java/Gui/gui.java @@ -1,9 +1,11 @@ package Gui; +import javax.swing.JButton; import javax.swing.JFrame; public class gui { JFrame jf; + JButton StartBtn, CloseBtn; public static int width = 800, height = 600; @@ -14,7 +16,12 @@ public class gui { jf.setLocationRelativeTo(null); jf.setResizable(false); jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - + StartBtn = new JButton("Starte Spiel"); + StartBtn.setSize(300,100); + jf.add(StartBtn); + CloseBtn = new JButton("Schlieen"); + CloseBtn.setSize(300,100); + jf.add(CloseBtn); } } diff --git a/target/MiniGameProject-1.0-SNAPSHOT.jar b/target/MiniGameProject-1.0-SNAPSHOT.jar index ff131d3c0a9abc535f0c9cd7d09e8986fc0ae984..8c3ad28ecbd5123f1cf2cb423585ec318395990a 100644 GIT binary patch delta 1074 zcmZ1_I$eS%z?+$civa|du}$PrWm?KM(Rdb!Jg-o{lx<#U+d2i+gG>wz*(?kUyg*g% zrJ4HarI~ukIf=!^xk0(XLV+T6dI~yQPIXVn2uq1{P+PiG)lF^L!+>)g%{Ql~wXTjy zPo4Wzsc-&g_LZH+rkD9&_RG z4xARaW%#YWw$mrUI?U2&RDoQl5Z?552tH_1D;)Ns7+STO(K_A4SY-!4li zc$;JB(*1w>sZ|qZ^sSaic#+w;YK`HBrcZpYB!c4dd%NGx3aP)^UK(?p*Xz!MO)7kr ztt#BDA(4rkvfB*~2`H@5kxII(a$|DMeaH7NB#y?untfqWsG$n)mQ%i)e%G8$l6Y}0 zc}t2~{@ZtvrE$}5`sD<MbczogNm;O?lgCfn(7JQymbhK;w zk`t>s60e>$mNhOkmNh)Wc%0?v+-h_?k%kIr@$*Ao^a{SzgZ>X3>Vby(Kj2BYk%t z5^wFg*kQiz*5dyXOI+DVg19}hOcbOKc@R`N9y~u(_eVkJKg78q~5W;&^Oj5 z_fE*Pt%cE%<pak#nMfs!_BLl-W#?3WM zE{sge*d`xh)&^1UnXQ4;W*wF*OdQLAD%Xi0S~Qu1J&)CNn~_Ptu4mnFq;a0p5&EBFwNnI{6KU z43jeJWG+rwkZqcrGE4!ilRt7QPR`)uQ2;p$VhV)RhjRoN{{QaMZ9>OvS97~TOfFHn_x zX{LU9X{KIsPGWI!YJji*AqRn4?p7z=`Al`%_ZpgQs}58cIwr4@Gcc`+KGo&zH9M#K z$9A6(A>TiY|1=(N5wfhfVJ@Hl?ChJG+WqxR7A}_^xH4sDb@FWDd1_eyWZLn+6H84c zxXqJJ$kltsyB+6w8Fu^P#N-vnT>Zl=CWn;W3$9TrGLX6;+-vi>2t~hZDy-8 z5xWiqPB!0V4qybv$7Fq0Z4ed1Y7L||&t$#ABm|0|-^#^4`M`Lo2Vz@> z$&B2FlQ(b}vl?zTG6|pjf+G;5$C}d=7_XCyI2}N|Eu02?s4+YF6Q?dnMv+T~DTQgW zJ(mQC7YXETW1d{jC942Z4m2MQfyYHjoq-5ME(oU^u`I;sF4T$@?(? diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties index f531e08..0200832 100644 --- a/target/maven-archiver/pom.properties +++ b/target/maven-archiver/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven -#Fri Dec 30 00:46:17 CET 2022 +#Fri Dec 30 00:53:10 CET 2022 groupId=MiniGameProject artifactId=MiniGameProject version=1.0-SNAPSHOT