From f8aa15c0c4967609f2a0892d25d4ce7667dac948 Mon Sep 17 00:00:00 2001 From: Ozan-Can Ekinci Date: Tue, 10 Jan 2023 18:08:48 +0100 Subject: [PATCH] adjusted winningpanel format --- src/main/java/Gui/GameGui.java | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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); }