|
@ -46,8 +46,11 @@ GridBagConstraints gbc; |
|
|
public void createLosingPanel() { |
|
|
public void createLosingPanel() { |
|
|
MainPanel.setVisible(false); |
|
|
MainPanel.setVisible(false); |
|
|
ButtonPanel.setVisible(false); |
|
|
ButtonPanel.setVisible(false); |
|
|
LosingPanel = new JPanel(); |
|
|
|
|
|
|
|
|
LosingPanel = new JPanel(new GridLayout()); |
|
|
LosingLabel = new JLabel("Du hast Verloren!"); |
|
|
LosingLabel = new JLabel("Du hast Verloren!"); |
|
|
|
|
|
LosingLabel.setVerticalAlignment(JLabel.CENTER); |
|
|
|
|
|
LosingLabel.setHorizontalAlignment(JLabel.CENTER); |
|
|
|
|
|
LosingLabel.setFont(new Font("Serif", Font.BOLD, 28)); |
|
|
LosingPanel.add(LosingLabel); |
|
|
LosingPanel.add(LosingLabel); |
|
|
gui.Frame.add(LosingPanel); |
|
|
gui.Frame.add(LosingPanel); |
|
|
} |
|
|
} |
|
|