From b768691cf5d9bf0794f773dc54c59559bc118b9a Mon Sep 17 00:00:00 2001 From: fdai7431 Date: Mon, 16 Jan 2023 12:19:37 +0100 Subject: [PATCH] [GamelauncherMain Class]: Weitere Definitionen fuer Button --- .../JavaGamelauncher/GamelauncherMain.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) 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 d6c9509..0dea208 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 @@ -2,6 +2,7 @@ package de.hs_fulda.gruppenprojekt.JavaGamelauncher; import java.awt.Color; import java.awt.EventQueue; +import java.awt.Font; import javax.swing.JButton; import javax.swing.JFrame; @@ -68,6 +69,21 @@ public class GamelauncherMain extends JFrame {//class JButton btnTikTakToe = new JButton("TikTakToe Starten"); JButton btnTextadventure = new JButton("Textadventure Starten"); + btnSnake.setBackground(Color.PINK); + btnMouse.setBackground(Color.PINK); + btnTikTakToe.setBackground(Color.PINK); + btnTextadventure.setBackground(Color.PINK); + + btnSnake.setFont(new Font("Consolas", Font.PLAIN, 12)); + btnMouse.setFont(new Font("Consolas", Font.PLAIN, 12)); + 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); + }//end standardkonstruktor }//end class