Ändere HitoriApp zu einer Instanzmethode und implementiere Main-Klasse als Einstiegspunkt
parent
a7e92f5a6f
commit
cd94bc7db0
|
@ -3,7 +3,7 @@ package PR2.HitoriSpiel.GUI;
|
|||
import javax.swing.*;
|
||||
|
||||
public class HitoriApp {
|
||||
public static void start() {
|
||||
public void start() {
|
||||
SwingUtilities.invokeLater(() -> {
|
||||
// Hauptfenster erstellen
|
||||
JFrame frame = new JFrame("Hitori - Das Spiel");
|
||||
|
|
|
@ -5,6 +5,8 @@ import PR2.HitoriSpiel.GUI.HitoriApp;
|
|||
public class Main {
|
||||
public static void main(String[] args) {
|
||||
|
||||
HitoriApp.start();
|
||||
HitoriApp app = new HitoriApp();
|
||||
|
||||
app.start();
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue