From 4b0a5f346b8c047ec23bb554d062ba1e80b02eb4 Mon Sep 17 00:00:00 2001 From: fdai7431 Date: Thu, 19 Jan 2023 14:12:44 +0100 Subject: [PATCH] [GamelauncherMain Class]: Zahlen durch Konstante ersetzt --- .../JavaGamelauncher/GamelauncherMain.java | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java index 60bc2ea..982d73f 100644 --- a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java +++ b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java @@ -16,6 +16,7 @@ import javax.swing.border.EmptyBorder; public class GamelauncherMain extends JFrame {//class + int yAbschnitt = 500; public int breite = 1270; @@ -84,10 +85,10 @@ public class GamelauncherMain extends JFrame {//class btnTikTakToe.setFont(new Font("Consolas", Font.PLAIN, 12)); btnTextadventure.setFont(new Font("Consolas", Font.PLAIN, 12)); - btnSnake.setBounds(10, 500, 300, 25); - btnTikTakToe.setBounds(630, 500, 300, 25); - btnMouse.setBounds(320, 500, 300, 25); - btnTextadventure.setBounds(940, 500, 300, 25); + btnSnake.setBounds(10, yAbschnitt, 300, 25); + btnTikTakToe.setBounds(630, yAbschnitt, 300, 25); + btnMouse.setBounds(320, yAbschnitt, 300, 25); + btnTextadventure.setBounds(940, yAbschnitt, 300, 25); contentPane.add(btnSnake); contentPane.add(btnMouse);