Browse Source

displaying last question number after losing

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

3
src/main/java/Gui/GameGui.java

@ -60,7 +60,8 @@ GridBagConstraints gbc;
LosingPanel = new JPanel(); LosingPanel = new JPanel();
LosingPanel.setLayout(new GridBagLayout()); LosingPanel.setLayout(new GridBagLayout());
LosingLabel = new JLabel("Du hast Verloren!");
LosingLabel = new JLabel();
LosingLabel.setText("Du hast Frage " + (counter - 1) + " falsch beantwortet");
LosingLabel.setVerticalAlignment(JLabel.CENTER); LosingLabel.setVerticalAlignment(JLabel.CENTER);
LosingLabel.setHorizontalAlignment(JLabel.CENTER); LosingLabel.setHorizontalAlignment(JLabel.CENTER);
LosingLabel.setFont(new Font("Serif", Font.BOLD, 28)); LosingLabel.setFont(new Font("Serif", Font.BOLD, 28));

Loading…
Cancel
Save