Browse Source

[GamelauncherMain Class]: Erstellen des Frames.

remotes/origin/textadventure
fdai7382 2 years ago
parent
commit
eb7d6f1c40
  1. 47
      JavaGamelauncher/src/main/java/de/hs_fulda/gruppenprojekt/JavaGamelauncher/GamelauncherMain.java

47
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();
}
}
});
}
}
Loading…
Cancel
Save