Browse Source

change the size and margin of the GridBagConstraints

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

4
src/main/java/Gui/GameGui.java

@ -4,6 +4,7 @@ import java.awt.Font;
import java.awt.GridBagConstraints; import java.awt.GridBagConstraints;
import java.awt.GridBagLayout; import java.awt.GridBagLayout;
import java.awt.GridLayout; import java.awt.GridLayout;
import java.awt.Insets;
import javax.swing.JLabel; import javax.swing.JLabel;
import javax.swing.JPanel; import javax.swing.JPanel;
@ -36,6 +37,9 @@ GridBagConstraints gbc;
headingPanel.add(QuestionLabel); headingPanel.add(QuestionLabel);
ButtonPanel.setLayout(new GridBagLayout()); ButtonPanel.setLayout(new GridBagLayout());
gbc = new GridBagConstraints(); gbc = new GridBagConstraints();
gbc.gridwidth = 1;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.insets = new Insets(10,10,10,10);
} }
} }
Loading…
Cancel
Save