Browse Source

adjusted winningpanel format

master
Ozan-Can Ekinci 2 years ago
parent
commit
f8aa15c0c4
  1. 6
      src/main/java/Gui/GameGui.java

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

Loading…
Cancel
Save