From 566e9a32ca13470f19b0d952bc55a5b3899b33a8 Mon Sep 17 00:00:00 2001 From: fdai7382 Date: Thu, 19 Jan 2023 13:30:36 +0100 Subject: [PATCH] refactoring: [MouseGame Class]: Umbenennen des Startlabels. --- .../gruppenprojekt/JavaGamelauncher/MouseGame.java | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) 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 c1a980a..9c0d820 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 @@ -51,11 +51,11 @@ 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); + JLabel labelStart = new JLabel("Start"); + labelStart.setHorizontalAlignment(SwingConstants.CENTER); + labelStart.setFont(new Font("Tahoma", Font.BOLD, 30)); + labelStart.setBounds(10, 11, 83, 49); + contentPane.add(labelStart); JLabel lblNewLabel = new JLabel("Ziel"); lblNewLabel.setHorizontalAlignment(SwingConstants.CENTER); @@ -73,6 +73,4 @@ public class MouseGame extends JFrame { }//end standardkonstruktor - - }//end class