Browse Source

Added minimum gridwith and height with margin

master
Leon Montag 2 years ago
parent
commit
7d94812ffb
  1. 4
      src/main/java/Gui/gui.java
  2. BIN
      target/MiniGameProject-1.0-SNAPSHOT.jar
  3. 2
      target/maven-archiver/pom.properties

4
src/main/java/Gui/gui.java

@ -3,6 +3,7 @@ package Gui;
import java.awt.Font;
import java.awt.GridBagConstraints;
import java.awt.GridBagLayout;
import java.awt.Insets;
import javax.swing.JButton;
import javax.swing.JFrame;
@ -34,6 +35,9 @@ public class gui {
GridBagConstraints gbc = new GridBagConstraints();
gbc.gridwidth = GridBagConstraints.REMAINDER;
gbc.fill = GridBagConstraints.HORIZONTAL;
gbc.ipadx = 300;
gbc.ipady = 100;
gbc.insets = new Insets(20, 0, 0, 0);
Label = new JLabel("MiniGames");
Label.setHorizontalAlignment(JLabel.CENTER);
Label.setFont(new Font("Serif", Font.BOLD, 28));

BIN
target/MiniGameProject-1.0-SNAPSHOT.jar

2
target/maven-archiver/pom.properties

@ -1,5 +1,5 @@
#Generated by Maven
#Fri Dec 30 00:59:01 CET 2022
#Fri Dec 30 01:03:37 CET 2022
groupId=MiniGameProject
artifactId=MiniGameProject
version=1.0-SNAPSHOT
Loading…
Cancel
Save