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 8c3ad28..60fca95 100644 Binary files a/target/MiniGameProject-1.0-SNAPSHOT.jar and b/target/MiniGameProject-1.0-SNAPSHOT.jar differ 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