From d53452d3fe90cbcc36dfab2a648552e7df59b993 Mon Sep 17 00:00:00 2001 From: Leon Montag Date: Fri, 30 Dec 2022 00:57:44 +0100 Subject: [PATCH] Add MiniGame Headline --- src/main/java/Gui/gui.java | 13 +++++++++++-- target/MiniGameProject-1.0-SNAPSHOT.jar | Bin 3095 -> 3400 bytes target/maven-archiver/pom.properties | 2 +- 3 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/main/java/Gui/gui.java b/src/main/java/Gui/gui.java index ed1835f..5f73061 100644 --- a/src/main/java/Gui/gui.java +++ b/src/main/java/Gui/gui.java @@ -1,22 +1,25 @@ package Gui; +import java.awt.Font; import java.awt.GridBagLayout; import javax.swing.JButton; import javax.swing.JFrame; +import javax.swing.JLabel; import javax.swing.JPanel; public class gui { JFrame jf; JButton StartBtn, CloseBtn; - JPanel Panel; + JPanel Panel; + JLabel Label; + public static int width = 800, height = 600; public void create(){ jf = new JFrame("Wer wird Millionr"); jf.setSize(width,height); - jf.setVisible(true); jf.setLocationRelativeTo(null); jf.setResizable(false); jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); @@ -27,10 +30,16 @@ public class gui { Panel = new JPanel(); Panel.setSize(width,height); Panel.setLayout(new GridBagLayout()); + Label = new JLabel("MiniGames"); + Label.setHorizontalAlignment(JLabel.CENTER); + Label.setFont(new Font("Serif", Font.BOLD, 28)); Panel.add(StartBtn); Panel.add(CloseBtn); + Panel.add(Label); jf.add(Panel); + jf.setVisible(true); Panel.setVisible(true); + } diff --git a/target/MiniGameProject-1.0-SNAPSHOT.jar b/target/MiniGameProject-1.0-SNAPSHOT.jar index 8c3ad28ecbd5123f1cf2cb423585ec318395990a..60fca950dcd8ad680aa9ae589da100e779970bbe 100644 GIT binary patch delta 1403 zcmbO(aYBkGz?+$civa|r*(dU-GD)#dG@b<_&nwhRvCj+r_2*>tCuRnQS!@gpyg*g% zrJ4HarI~ukIf=!^xgmGMg55>_wY8`maa3SZ3h@2QJ5lPlw`ziRgn`rn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Bl%&^i9Rf9f?hJ7Fn(M;UzP}j2PSLEg(v~vIp kOLTw1^)oDKoWcp!$0rux%?d0z85p>L@Cp+HLmb$800)yqH~;_u delta 1112 zcmX>hHC=)yz?+$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#?4Z! zE{sge*d`~iX@jU@dsL(N5#mAQ2lQ0-x0fMh^$E@W8Jc#(N>0k;Imur6*HCS}&iE4XD9Ko&w2 zKuCEwM}Xn~{{Ys>8#onp0=yZSM3`aO8C8QmiiTd02E)n8JX%b*KulBpirgH8b`D@^ p0P$cxP+L6^+rqUo0G*i30n}qJ7U0dw1`_82!YjZ+LYEW70|0>8xqkov diff --git a/target/maven-archiver/pom.properties b/target/maven-archiver/pom.properties index 0200832..cb8815d 100644 --- a/target/maven-archiver/pom.properties +++ b/target/maven-archiver/pom.properties @@ -1,5 +1,5 @@ #Generated by Maven -#Fri Dec 30 00:53:10 CET 2022 +#Fri Dec 30 00:56:52 CET 2022 groupId=MiniGameProject artifactId=MiniGameProject version=1.0-SNAPSHOT