|
|
@ -11,7 +11,7 @@ import javax.swing.JLabel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
|
|
|
|
public class gui { |
|
|
|
public static JFrame jf; |
|
|
|
public static JFrame Frame; |
|
|
|
public static JButton StartBtn, CloseBtn; |
|
|
|
public static JPanel Panel; |
|
|
|
public static JLabel Label; |
|
|
@ -23,11 +23,11 @@ public class gui { |
|
|
|
createPanel(); |
|
|
|
} |
|
|
|
public void createFrame(){ |
|
|
|
jf = new JFrame("Wer wird Millionr"); |
|
|
|
jf.setSize(width,height); |
|
|
|
jf.setLocationRelativeTo(null); |
|
|
|
jf.setResizable(false); |
|
|
|
jf.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
|
|
Frame = new JFrame("MiniGames"); |
|
|
|
Frame.setSize(width,height); |
|
|
|
Frame.setLocationRelativeTo(null); |
|
|
|
Frame.setResizable(false); |
|
|
|
Frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
|
|
} |
|
|
|
|
|
|
|
public void createButtons() { |
|
|
@ -54,8 +54,8 @@ public class gui { |
|
|
|
Panel.add(Label,gbc); |
|
|
|
Panel.add(StartBtn,gbc); |
|
|
|
Panel.add(CloseBtn,gbc); |
|
|
|
jf.add(Panel); |
|
|
|
jf.setVisible(true); |
|
|
|
Frame.add(Panel); |
|
|
|
Frame.setVisible(true); |
|
|
|
Panel.setVisible(true); |
|
|
|
} |
|
|
|
|
|
|
|