Adjust MainGui frame size to match GameGui
parent
1613ab575f
commit
08fc96187b
|
|
@ -13,7 +13,7 @@ public class MainGui {
|
||||||
|
|
||||||
frame = new JFrame("Chess - Hauptmenü");
|
frame = new JFrame("Chess - Hauptmenü");
|
||||||
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
|
||||||
frame.setSize(800, 600);
|
frame.setSize(1600, 1000);
|
||||||
frame.setLocationRelativeTo(null);
|
frame.setLocationRelativeTo(null);
|
||||||
|
|
||||||
//Haupt-Panel mit GridBagLayout
|
//Haupt-Panel mit GridBagLayout
|
||||||
|
|
@ -27,7 +27,7 @@ public class MainGui {
|
||||||
|
|
||||||
//Title
|
//Title
|
||||||
JLabel title = new JLabel("Chess", SwingConstants.CENTER);
|
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));
|
title.setForeground(new Color(0x1b263b));
|
||||||
gbc.gridy = 0;
|
gbc.gridy = 0;
|
||||||
gbc.ipady = 50;
|
gbc.ipady = 50;
|
||||||
|
|
@ -36,12 +36,12 @@ public class MainGui {
|
||||||
//Abstand nach unten
|
//Abstand nach unten
|
||||||
gbc.gridy = 1;
|
gbc.gridy = 1;
|
||||||
gbc.ipady = 15;
|
gbc.ipady = 15;
|
||||||
mainPanel.add(Box.createRigidArea(new Dimension(0, 60)), gbc);
|
mainPanel.add(Box.createRigidArea(new Dimension(0, 20)), gbc);
|
||||||
|
|
||||||
//Buttons
|
//Buttons
|
||||||
JButton btnMode1 = new JButton("Normal Modus");
|
JButton btnMode1 = new JButton("Normal Mode");
|
||||||
JButton btnMode2 = new JButton("Modus 2 (coming soon)");
|
JButton btnMode2 = new JButton("Mode 2 (coming soon)");
|
||||||
JButton btnMode3 = new JButton("Modus 3 (coming soon)");
|
JButton btnMode3 = new JButton("Mode 3 (coming soon)");
|
||||||
|
|
||||||
styleButton(btnMode1);
|
styleButton(btnMode1);
|
||||||
styleButton(btnMode2);
|
styleButton(btnMode2);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue