|
|
@ -47,7 +47,6 @@ public class GameGui implements GameGuiInterface { |
|
|
|
@Override |
|
|
|
public void createLosingPanel() { |
|
|
|
MainPanel.setVisible(false); |
|
|
|
ButtonPanel.setVisible(false); |
|
|
|
|
|
|
|
GridBagConstraints gbc = new GridBagConstraints(); |
|
|
|
gbc.gridwidth = GridBagConstraints.REMAINDER; |
|
|
@ -77,8 +76,7 @@ public class GameGui implements GameGuiInterface { |
|
|
|
|
|
|
|
@Override |
|
|
|
public void createWinningPanel() { |
|
|
|
GameGui.MainPanel.setVisible(false); |
|
|
|
GameGui.ButtonPanel.setVisible(false); |
|
|
|
MainPanel.setVisible(false); |
|
|
|
|
|
|
|
GridBagConstraints gbc = new GridBagConstraints(); |
|
|
|
gbc.gridwidth = GridBagConstraints.REMAINDER; |
|
|
@ -95,7 +93,7 @@ public class GameGui implements GameGuiInterface { |
|
|
|
WinningLabel = new JLabel("Du hast Gewonnen"); |
|
|
|
WinningLabel.setVerticalAlignment(JLabel.CENTER); |
|
|
|
WinningLabel.setHorizontalAlignment(JLabel.CENTER); |
|
|
|
WinningLabel.setFont(new Font("Serif", Font.BOLD, 28)); |
|
|
|
WinningLabel.setFont(new Font("Serif", Font.BOLD, 34)); |
|
|
|
|
|
|
|
WinningPanel.add(WinningLabel, gbc); |
|
|
|
WinningPanel.add(RestartBtn1, gbc); |
|
|
|