From c41075641e612d37abdab38272d2de14dc2fa973 Mon Sep 17 00:00:00 2001 From: Ozan-Can Ekinci Date: Fri, 13 Jan 2023 17:47:23 +0100 Subject: [PATCH] displaying last question number after losing --- src/main/java/Gui/GameGui.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main/java/Gui/GameGui.java b/src/main/java/Gui/GameGui.java index a005f4e..251dfba 100644 --- a/src/main/java/Gui/GameGui.java +++ b/src/main/java/Gui/GameGui.java @@ -60,7 +60,8 @@ GridBagConstraints gbc; LosingPanel = new JPanel(); 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.setHorizontalAlignment(JLabel.CENTER); LosingLabel.setFont(new Font("Serif", Font.BOLD, 28));