|
@ -1,9 +1,11 @@ |
|
|
package Gui; |
|
|
package Gui; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JButton; |
|
|
import javax.swing.JFrame; |
|
|
import javax.swing.JFrame; |
|
|
|
|
|
|
|
|
public class gui { |
|
|
public class gui { |
|
|
JFrame jf; |
|
|
JFrame jf; |
|
|
|
|
|
JButton StartBtn, CloseBtn; |
|
|
|
|
|
|
|
|
public static int width = 800, height = 600; |
|
|
public static int width = 800, height = 600; |
|
|
|
|
|
|
|
@ -14,7 +16,12 @@ public class gui { |
|
|
jf.setLocationRelativeTo(null); |
|
|
jf.setLocationRelativeTo(null); |
|
|
jf.setResizable(false); |
|
|
jf.setResizable(false); |
|
|
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
|
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
|
|
|
|
|
|
|
|
|
|
StartBtn = new JButton("Starte Spiel"); |
|
|
|
|
|
StartBtn.setSize(300,100); |
|
|
|
|
|
jf.add(StartBtn); |
|
|
|
|
|
CloseBtn = new JButton("Schlieen"); |
|
|
|
|
|
CloseBtn.setSize(300,100); |
|
|
|
|
|
jf.add(CloseBtn); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |