|
@ -2,11 +2,13 @@ package Gui; |
|
|
|
|
|
|
|
|
import java.awt.GridLayout; |
|
|
import java.awt.GridLayout; |
|
|
|
|
|
|
|
|
|
|
|
import javax.swing.JLabel; |
|
|
import javax.swing.JPanel; |
|
|
import javax.swing.JPanel; |
|
|
|
|
|
|
|
|
public class GameGui { |
|
|
public class GameGui { |
|
|
|
|
|
|
|
|
public static JPanel MainPanel, ButtonPanel, headingPanel; |
|
|
public static JPanel MainPanel, ButtonPanel, headingPanel; |
|
|
|
|
|
public static JLabel Headline; |
|
|
GridLayout grid; |
|
|
GridLayout grid; |
|
|
|
|
|
|
|
|
|
|
|
|
|
@ -18,5 +20,8 @@ GridLayout grid; |
|
|
grid.setVgap(150); |
|
|
grid.setVgap(150); |
|
|
headingPanel.setLayout(grid); |
|
|
headingPanel.setLayout(grid); |
|
|
gui.Frame.add(MainPanel); |
|
|
gui.Frame.add(MainPanel); |
|
|
|
|
|
Headline = new JLabel("Wer wird Millionär?"); |
|
|
|
|
|
headingPanel.add(Headline); |
|
|
|
|
|
MainPanel.add(headingPanel); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |