Browse Source

adjusted losingpanel format

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

5
src/main/java/Gui/GameGui.java

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

Loading…
Cancel
Save