making rep up to date before switching to feature branch to add

ausleihen methode to project
dateFeature
Berat 2024-11-09 11:56:57 +01:00
parent 173c718940
commit d63ddf4806
2 changed files with 21 additions and 19 deletions

View File

@ -7,7 +7,6 @@ import javax.swing.JLabel;
import guiBib.*;
public class Bibliothek {
static ArrayList<Buch> bücherListe = new ArrayList<>();
static ArrayList<CD> cdListe = new ArrayList<>();
static ArrayList<DVD> dvdListe = new ArrayList<>();
@ -26,29 +25,29 @@ public class Bibliothek {
bücherListe.add(b3);
bücherListe.add(b4);
bücherListe.add(b5);
CD c1 = new CD("CD1", 2000, "01.01.2020", 20001);
CD c2 = new CD("CD2", 2000, "01.01.2020", 20002);
CD c3 = new CD("CD3", 2000, "01.01.2020", 20003);
CD c4 = new CD("CD4", 2000, "01.01.2020", 20004);
CD c5 = new CD("CD5", 2000, "01.01.2020", 20005);
cdListe.add(c1);
cdListe.add(c2);
cdListe.add(c3);
cdListe.add(c4);
cdListe.add(c5);
DVD d1 = new DVD("DVD1", 2000, "01.01.2020", 30001);
DVD d2 = new DVD("DVD2", 2000, "01.01.2020", 30002);
DVD d3 = new DVD("DVD3", 2000, "01.01.2020", 30003);
DVD d4 = new DVD("DVD4", 2000, "01.01.2020", 30004);
DVD d5 = new DVD("DVD5", 2000, "01.01.2020", 30005);
DVD d1 = new DVD("DVD1", 2000, "01.01.2020", 20001);
DVD d2 = new DVD("DVD2", 2000, "01.01.2020", 20002);
DVD d3 = new DVD("DVD3", 2000, "01.01.2020", 20003);
DVD d4 = new DVD("DVD4", 2000, "01.01.2020", 20004);
DVD d5 = new DVD("DVD5", 2000, "01.01.2020", 20005);
dvdListe.add(d1);
dvdListe.add(d2);
dvdListe.add(d3);
dvdListe.add(d4);
dvdListe.add(d5);
CD c1 = new CD("CD1", 2000, "01.01.2020", 30001);
CD c2 = new CD("CD2", 2000, "01.01.2020", 30002);
CD c3 = new CD("CD3", 2000, "01.01.2020", 30003);
CD c4 = new CD("CD4", 2000, "01.01.2020", 30004);
CD c5 = new CD("CD5", 2000, "01.01.2020", 30005);
cdListe.add(c1);
cdListe.add(c2);
cdListe.add(c3);
cdListe.add(c4);
cdListe.add(c5);
Brettspiel bs1 = new Brettspiel("Brettspiel1", 2000, "01.01.2020", 40001);
Brettspiel bs2 = new Brettspiel("Brettspiel2", 2000, "01.01.2020", 40002);
Brettspiel bs3 = new Brettspiel("Brettspiel3", 2000, "01.01.2020", 40003);

View File

@ -37,6 +37,10 @@ public class BibliothekGUI extends JFrame implements ActionListener{
if(substring.equals("Kunde")) {openMainMenu(b);}
if(substring.equals("Mitarbeiter")) {openAdmin();}
});
bp.add(b1);
bp.add(b2);
loginPanel.add(bp, BorderLayout.SOUTH);
add(mainPanel);
setVisible(true);
setSize(600, 600);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
@ -65,7 +69,7 @@ public class BibliothekGUI extends JFrame implements ActionListener{
b4.addActionListener(e -> bsMenu());
JButton b5 = new JButton("Videospiele");
b5.addActionListener(e -> vsMenu());
JButton b6 = new JButton("Meine Bücher");
JButton b6 = new JButton("Meine Ausgeliehenen Medien");
b6.addActionListener(e -> myBooks(b));
JButton b7 = new JButton("Ausloggen");
b7.addActionListener(e -> cl.show(mainPanel, "LoginPanel"));
@ -239,7 +243,6 @@ public class BibliothekGUI extends JFrame implements ActionListener{
}
@Override
public void actionPerformed(ActionEvent e) {
}