From 71f3b2a680e9b4c794087ab27db08c2df6242a10 Mon Sep 17 00:00:00 2001 From: fdai7431 Date: Mon, 16 Jan 2023 12:14:23 +0100 Subject: [PATCH] [GamelauncherMain Class]: Button Initialisiert --- JavaGamelauncher/.classpath | 66 +++++++++---------- .../JavaGamelauncher/GamelauncherMain.java | 6 ++ 2 files changed, 39 insertions(+), 33 deletions(-) diff --git a/JavaGamelauncher/.classpath b/JavaGamelauncher/.classpath index db956d9..6a86c23 100644 --- a/JavaGamelauncher/.classpath +++ b/JavaGamelauncher/.classpath @@ -1,33 +1,33 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 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 9162bef..d6c9509 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 @@ -3,6 +3,7 @@ package de.hs_fulda.gruppenprojekt.JavaGamelauncher; import java.awt.Color; import java.awt.EventQueue; +import javax.swing.JButton; import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; @@ -61,6 +62,11 @@ public class GamelauncherMain extends JFrame {//class setBackground(Color.DARK_GRAY); contentPane.setForeground(Color.GRAY); contentPane.setBackground(Color.DARK_GRAY); + + JButton btnSnake = new JButton("Snake Starten"); + JButton btnMouse = new JButton("Mouse Starten"); + JButton btnTikTakToe = new JButton("TikTakToe Starten"); + JButton btnTextadventure = new JButton("Textadventure Starten"); }//end standardkonstruktor