|
@ -45,10 +45,14 @@ GridBagConstraints gbc; |
|
|
public void createWinningPanel() { |
|
|
public void createWinningPanel() { |
|
|
GameGui.MainPanel.setVisible(false); |
|
|
GameGui.MainPanel.setVisible(false); |
|
|
GameGui.ButtonPanel.setVisible(false); |
|
|
GameGui.ButtonPanel.setVisible(false); |
|
|
WinningPanel = new JPanel(); |
|
|
|
|
|
|
|
|
WinningPanel = new JPanel(new GridLayout()); |
|
|
WinningLabel = new JLabel("Du hast Gewonnen!"); |
|
|
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); |
|
|
WinningPanel.add(WinningLabel); |
|
|
gui.Frame.add(WinningPanel); |
|
|
gui.Frame.add(WinningPanel); |
|
|
|
|
|
WinningPanel.setVisible(true); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|