Browse Source

refactoring: [MouseGame Class]: Auslagern der Font.

remotes/origin/MouseGame
fdai7382 2 years ago
parent
commit
d129367c79
  1. 6
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java

6
JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java

@ -24,6 +24,8 @@ public class MouseGame extends JFrame {
public Color farbeBeige = new Color(128, 128, 128);
public Color farbeSchwarz = new Color(0, 0, 0);
public Font fontTahoma = new Font("Tahoma", Font.BOLD, 30);
int resetX = 200;
int resetY = 170;
@ -70,13 +72,13 @@ public class MouseGame extends JFrame {
JLabel labelStart = new JLabel("Start");
labelStart.setHorizontalAlignment(SwingConstants.CENTER);
labelStart.setFont(new Font("Tahoma", Font.BOLD, 30));
labelStart.setFont(fontTahoma);
labelStart.setBounds(10, 11, 83, 49);
contentPane.add(labelStart);
JLabel labelZiel = new JLabel("Ziel");
labelZiel.setHorizontalAlignment(SwingConstants.CENTER);
labelZiel.setFont(new Font("Tahoma", Font.BOLD, 30));
labelZiel.setFont(fontTahoma);
labelZiel.setBounds(809, 525, 67, 49);
contentPane.add(labelZiel);

Loading…
Cancel
Save