|
@ -1,14 +1,22 @@ |
|
|
package Gui; |
|
|
package Gui; |
|
|
|
|
|
|
|
|
|
|
|
import java.awt.GridLayout; |
|
|
|
|
|
|
|
|
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; |
|
|
|
|
|
GridLayout grid; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public void createGui() { |
|
|
public void createGui() { |
|
|
MainPanel = new JPanel(); |
|
|
MainPanel = new JPanel(); |
|
|
ButtonPanel = new JPanel(); |
|
|
ButtonPanel = new JPanel(); |
|
|
headingPanel = new JPanel(); |
|
|
headingPanel = new JPanel(); |
|
|
|
|
|
grid = new GridLayout(2,1); |
|
|
|
|
|
grid.setVgap(150); |
|
|
|
|
|
headingPanel.setLayout(grid); |
|
|
|
|
|
gui.Frame.add(MainPanel); |
|
|
} |
|
|
} |
|
|
} |
|
|
} |