Browse Source

[MouseGame Class]: Hinzufügen des Startfeldes.

remotes/origin/textadventure
fdai7382 2 years ago
parent
commit
26a729951f
  1. 10
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java

10
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

Loading…
Cancel
Save