From 250df5fe9996667bd8e9aa40487ab257582da8fe Mon Sep 17 00:00:00 2001 From: 3010293 <3010293@stud.hs-mannheim.de> Date: Sat, 9 Nov 2024 16:21:53 +0100 Subject: [PATCH] small fix to kundenAuflisten --- PR2Bib/src/domainBib/Bibliothek.java | 3 ++- PR2Bib/src/guiBib/BibliothekGUI.java | 4 ++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/PR2Bib/src/domainBib/Bibliothek.java b/PR2Bib/src/domainBib/Bibliothek.java index 902f74b..28a4cef 100644 --- a/PR2Bib/src/domainBib/Bibliothek.java +++ b/PR2Bib/src/domainBib/Bibliothek.java @@ -330,7 +330,8 @@ public class Bibliothek { } for(Kunde k: kundenListe) { JLabel cd = new JLabel("Kennnummer: " + k.getKennnummer() - + ", Student: " + k.istStudent()); + + ", Student: " + k.istStudent() + + ", Schulden: " + k.getSchulden()); jlabelList.add(cd); } return jlabelList; diff --git a/PR2Bib/src/guiBib/BibliothekGUI.java b/PR2Bib/src/guiBib/BibliothekGUI.java index 0c37ab5..c50e3a5 100644 --- a/PR2Bib/src/guiBib/BibliothekGUI.java +++ b/PR2Bib/src/guiBib/BibliothekGUI.java @@ -58,7 +58,7 @@ public class BibliothekGUI extends JFrame implements ActionListener{ JButton b1 = new JButton("Liste aller Kunden ansehen"); b1.addActionListener(e -> userListMenu()); JButton b2 = new JButton("Gebühren überschreiben"); - b2.addActionListener(e -> userOwedMenu()); + b2.addActionListener(e -> changeOwedMenu()); adminGrid.add(b1); adminGrid.add(b2); adminPanel.add(adminGrid, BorderLayout.CENTER); @@ -81,7 +81,7 @@ public class BibliothekGUI extends JFrame implements ActionListener{ } - private static void userOwedMenu() { + private static void changeOwedMenu() { }