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); }