|
|
@ -10,11 +10,12 @@ import javax.swing.JButton; |
|
|
|
import javax.swing.JLabel; |
|
|
|
import javax.swing.JPanel; |
|
|
|
|
|
|
|
|
|
|
|
public class GameGui { |
|
|
|
|
|
|
|
public static JPanel MainPanel, ButtonPanel, headingPanel; |
|
|
|
public static JLabel Headline,QuestionLabel; |
|
|
|
public static JButton AnswersBtn1,AnswersBtn2; |
|
|
|
public static JButton AnswersBtn1,AnswersBtn2,AnswersBtn3,AnswersBtn4; |
|
|
|
GridLayout grid; |
|
|
|
GridBagConstraints gbc; |
|
|
|
|
|
|
@ -55,7 +56,15 @@ GridBagConstraints gbc; |
|
|
|
AnswersBtn2 = new JButton(); |
|
|
|
ButtonPanel.add(AnswersBtn2,gbc); |
|
|
|
|
|
|
|
gbc.gridx = 0; |
|
|
|
gbc.gridy = 1; |
|
|
|
AnswersBtn3 = new JButton(); |
|
|
|
ButtonPanel.add(AnswersBtn3,gbc); |
|
|
|
|
|
|
|
gbc.gridx = 1; |
|
|
|
gbc.gridy = 1; |
|
|
|
AnswersBtn4 = new JButton(); |
|
|
|
ButtonPanel.add(AnswersBtn4,gbc); |
|
|
|
ButtonPanel.setVisible(true); |
|
|
|
MainPanel.add(ButtonPanel); |
|
|
|
|
|
|
|