|
|
@ -1,9 +1,11 @@ |
|
|
|
package Gui; |
|
|
|
|
|
|
|
import javax.swing.JButton; |
|
|
|
import javax.swing.JFrame; |
|
|
|
|
|
|
|
public class gui { |
|
|
|
JFrame jf; |
|
|
|
JButton StartBtn, CloseBtn; |
|
|
|
|
|
|
|
public static int width = 800, height = 600; |
|
|
|
|
|
|
@ -14,7 +16,12 @@ public class gui { |
|
|
|
jf.setLocationRelativeTo(null); |
|
|
|
jf.setResizable(false); |
|
|
|
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); |
|
|
|
} |
|
|
|
|
|
|
|
} |