From 230c8f24067b5269f8f34a1832c423d49c4a71e6 Mon Sep 17 00:00:00 2001 From: fdai7382 Date: Thu, 19 Jan 2023 12:09:57 +0100 Subject: [PATCH] =?UTF-8?q?[MouseGame=20Class]:=20Hinzuf=C3=BCgen=20des=20?= =?UTF-8?q?Frames.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../JavaGamelauncher/MouseGame.java | 28 ++++++++++++++++++- 1 file changed, 27 insertions(+), 1 deletion(-) diff --git a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java index ef133d8..6f5719d 100644 --- a/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java +++ b/JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/MouseGame.java @@ -1,5 +1,31 @@ package de.hs_fulda.gruppenprojekt.JavaGamelauncher; -public class MouseGame { +import java.awt.EventQueue; + +import javax.swing.JFrame; +import javax.swing.JPanel; + +public class MouseGame extends JFrame { + + + + private JPanel contentPane; + + /** + * Launch the application. + */ + public static void main(String[] args) { + EventQueue.invokeLater(new Runnable() { + public void run() { + try { + GamelauncherMain frame = new GamelauncherMain(); + frame.setVisible(true); + } catch (Exception e) { + e.printStackTrace(); + } + } + }); + + } }