From 26a729951f548ba2a69e7e733614f2ae464b7df4 Mon Sep 17 00:00:00 2001 From: fdai7382 Date: Thu, 19 Jan 2023 12:32:50 +0100 Subject: [PATCH] =?UTF-8?q?[MouseGame=20Class]:=20Hinzuf=C3=BCgen=20des=20?= =?UTF-8?q?Startfeldes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../gruppenprojekt/JavaGamelauncher/MouseGame.java | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java index 8ac9a7e..ef09565 100644 --- a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java +++ b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java @@ -2,8 +2,12 @@ package de.hs_fulda.gruppenprojekt.JavaGamelauncher; import java.awt.Color; import java.awt.EventQueue; +import java.awt.Font; + import javax.swing.JFrame; +import javax.swing.JLabel; import javax.swing.JPanel; +import javax.swing.SwingConstants; import javax.swing.border.EmptyBorder; public class MouseGame extends JFrame { @@ -46,6 +50,12 @@ public class MouseGame extends JFrame { contentPane.setForeground(new Color(0, 0, 0)); contentPane.setBackground(new Color(128, 128, 128)); + JLabel lblNewLabel_1 = new JLabel("Start"); + lblNewLabel_1.setHorizontalAlignment(SwingConstants.CENTER); + lblNewLabel_1.setFont(new Font("Tahoma", Font.BOLD, 30)); + lblNewLabel_1.setBounds(10, 11, 83, 49); + contentPane.add(lblNewLabel_1); + }//end standardkonstruktor