|
|
@ -46,8 +46,11 @@ GridBagConstraints gbc; |
|
|
|
public void createLosingPanel() { |
|
|
|
MainPanel.setVisible(false); |
|
|
|
ButtonPanel.setVisible(false); |
|
|
|
LosingPanel = new JPanel(); |
|
|
|
LosingPanel = new JPanel(new GridLayout()); |
|
|
|
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); |
|
|
|
gui.Frame.add(LosingPanel); |
|
|
|
} |
|
|
|