Browse Source

Added Label, StartBtn and CloseBtn to GridBagConstraints

master
Leon Montag 2 years ago
parent
commit
13b383ae4e
  1. 6
      src/main/java/Gui/gui.java

6
src/main/java/Gui/gui.java

@ -37,9 +37,9 @@ public class gui {
Label = new JLabel("MiniGames");
Label.setHorizontalAlignment(JLabel.CENTER);
Label.setFont(new Font("Serif", Font.BOLD, 28));
Panel.add(StartBtn);
Panel.add(CloseBtn);
Panel.add(Label);
Panel.add(Label,gbc);
Panel.add(StartBtn,gbc);
Panel.add(CloseBtn,gbc);
jf.add(Panel);
jf.setVisible(true);
Panel.setVisible(true);

Loading…
Cancel
Save