From d2d5a52b6091c65c1d5e54cf7937d45aee0cbb88 Mon Sep 17 00:00:00 2001 From: Ozan-Can Ekinci Date: Tue, 10 Jan 2023 19:49:18 +0100 Subject: [PATCH] adjusted losingpanel format --- src/main/java/Gui/GameGui.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/main/java/Gui/GameGui.java b/src/main/java/Gui/GameGui.java index 32af424..c68c3fc 100644 --- a/src/main/java/Gui/GameGui.java +++ b/src/main/java/Gui/GameGui.java @@ -46,8 +46,11 @@ GridBagConstraints gbc; public void createLosingPanel() { MainPanel.setVisible(false); ButtonPanel.setVisible(false); - LosingPanel = new JPanel(); + LosingPanel = new JPanel(new GridLayout()); LosingLabel = new JLabel("Du hast Verloren!"); + LosingLabel.setVerticalAlignment(JLabel.CENTER); + LosingLabel.setHorizontalAlignment(JLabel.CENTER); + LosingLabel.setFont(new Font("Serif", Font.BOLD, 28)); LosingPanel.add(LosingLabel); gui.Frame.add(LosingPanel); }