From eb7d6f1c402e3760734421707f17f56ae4ae2458 Mon Sep 17 00:00:00 2001 From: fdai7382 Date: Mon, 16 Jan 2023 11:06:58 +0100 Subject: [PATCH] [GamelauncherMain Class]: Erstellen des Frames. --- .../JavaGamelauncher/GamelauncherMain.java | 49 ++++++++++++++++--- 1 file changed, 43 insertions(+), 6 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 d79e330..4b1091e 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 @@ -1,13 +1,50 @@ package de.hs_fulda.gruppenprojekt.JavaGamelauncher; +import java.awt.EventQueue; + +import javax.swing.JFrame; +import javax.swing.JPanel; + /** * Hello world! * */ -public class GamelauncherMain -{ - public static void main( String[] args ) - { - System.out.println( "Hello World!" ); - } +public class GamelauncherMain extends JFrame { + + + public int breite = 1270; + + public int hoehe = 600; + + + public int breiteLabels = 300; + + public int hoeheLabels = 400 ; + + + private JPanel contentPane; + + 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(); + + } + + } + }); + + } + }