Browse Source

Added AnswerBtn3 und AnswerBtn4

master
Leon Montag 2 years ago
parent
commit
12c2c1abea
  1. 11
      src/main/java/Gui/GameGui.java

11
src/main/java/Gui/GameGui.java

@ -10,11 +10,12 @@ import javax.swing.JButton;
import javax.swing.JLabel; 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,QuestionLabel; public static JLabel Headline,QuestionLabel;
public static JButton AnswersBtn1,AnswersBtn2;
public static JButton AnswersBtn1,AnswersBtn2,AnswersBtn3,AnswersBtn4;
GridLayout grid; GridLayout grid;
GridBagConstraints gbc; GridBagConstraints gbc;
@ -55,7 +56,15 @@ GridBagConstraints gbc;
AnswersBtn2 = new JButton(); AnswersBtn2 = new JButton();
ButtonPanel.add(AnswersBtn2,gbc); 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); ButtonPanel.setVisible(true);
MainPanel.add(ButtonPanel); MainPanel.add(ButtonPanel);

Loading…
Cancel
Save