Adjust MainGui frame size to match GameGui

Quicksave
Justin 2025-06-19 20:51:37 +02:00
parent 1613ab575f
commit 08fc96187b
1 changed files with 6 additions and 6 deletions

View File

@ -13,7 +13,7 @@ public class MainGui {
frame = new JFrame("Chess - Hauptmenü");
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
frame.setSize(800, 600);
frame.setSize(1600, 1000);
frame.setLocationRelativeTo(null);
//Haupt-Panel mit GridBagLayout
@ -27,7 +27,7 @@ public class MainGui {
//Title
JLabel title = new JLabel("Chess", SwingConstants.CENTER);
title.setFont(new Font("Serif", Font.BOLD, 70));
title.setFont(new Font("Serif", Font.BOLD, 150));
title.setForeground(new Color(0x1b263b));
gbc.gridy = 0;
gbc.ipady = 50;
@ -36,12 +36,12 @@ public class MainGui {
//Abstand nach unten
gbc.gridy = 1;
gbc.ipady = 15;
mainPanel.add(Box.createRigidArea(new Dimension(0, 60)), gbc);
mainPanel.add(Box.createRigidArea(new Dimension(0, 20)), gbc);
//Buttons
JButton btnMode1 = new JButton("Normal Modus");
JButton btnMode2 = new JButton("Modus 2 (coming soon)");
JButton btnMode3 = new JButton("Modus 3 (coming soon)");
JButton btnMode1 = new JButton("Normal Mode");
JButton btnMode2 = new JButton("Mode 2 (coming soon)");
JButton btnMode3 = new JButton("Mode 3 (coming soon)");
styleButton(btnMode1);
styleButton(btnMode2);