Browse Source

added AnswerBtn1 and AnswerBtn2

master
Leon Montag 2 years ago
parent
commit
bcfe22ef64
  1. 17
      src/main/java/Gui/GameGui.java

17
src/main/java/Gui/GameGui.java

@ -6,12 +6,15 @@ import java.awt.GridBagLayout;
import java.awt.GridLayout; import java.awt.GridLayout;
import java.awt.Insets; import java.awt.Insets;
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;
GridLayout grid; GridLayout grid;
GridBagConstraints gbc; GridBagConstraints gbc;
@ -42,5 +45,19 @@ GridBagConstraints gbc;
gbc.ipadx = 300; gbc.ipadx = 300;
gbc.ipady = 100; gbc.ipady = 100;
AnswersBtn1 = new JButton();
gbc.gridx = 0;
gbc.gridy = 0;
ButtonPanel.add(AnswersBtn1,gbc);
gbc.gridx = 1;
gbc.gridy = 0;
AnswersBtn2 = new JButton();
ButtonPanel.add(AnswersBtn2,gbc);
ButtonPanel.setVisible(true);
MainPanel.add(ButtonPanel);
} }
} }
Loading…
Cancel
Save