diff --git a/src/main/java/Gui/GameGui.java b/src/main/java/Gui/GameGui.java index fbc55c2..643edfd 100644 --- a/src/main/java/Gui/GameGui.java +++ b/src/main/java/Gui/GameGui.java @@ -45,10 +45,14 @@ GridBagConstraints gbc; public void createWinningPanel() { GameGui.MainPanel.setVisible(false); GameGui.ButtonPanel.setVisible(false); - WinningPanel = new JPanel(); + WinningPanel = new JPanel(new GridLayout()); WinningLabel = new JLabel("Du hast Gewonnen!"); + WinningLabel.setVerticalAlignment(JLabel.CENTER); + WinningLabel.setHorizontalAlignment(JLabel.CENTER); + WinningLabel.setFont(new Font("Serif", Font.BOLD, 28)); WinningPanel.add(WinningLabel); gui.Frame.add(WinningPanel); + WinningPanel.setVisible(true); }