small changes
parent
250df5fe99
commit
8f36814b94
|
@ -107,7 +107,6 @@ public class Bibliothek {
|
|||
return null;
|
||||
}
|
||||
|
||||
|
||||
public static ArrayList<JLabel> buchAuflisten() {
|
||||
ArrayList<JLabel> jlabelList = new ArrayList<>();
|
||||
if(bücherListe.size() == 0) {
|
||||
|
@ -125,7 +124,6 @@ public class Bibliothek {
|
|||
return jlabelList;
|
||||
}
|
||||
|
||||
|
||||
public static ArrayList<JLabel> dvdAuflisten() {
|
||||
ArrayList<JLabel> jlabelList = new ArrayList<>();
|
||||
if(dvdListe.size() == 0) {
|
||||
|
@ -296,7 +294,6 @@ public class Bibliothek {
|
|||
}
|
||||
}
|
||||
|
||||
|
||||
public static int bücherLänge() {
|
||||
return bücherListe.size();
|
||||
}
|
||||
|
@ -337,7 +334,6 @@ public class Bibliothek {
|
|||
return jlabelList;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -49,5 +49,4 @@ public class Kunde extends Benutzer {
|
|||
public void removeFromList(Medium m) {
|
||||
ausgelieheneMedien.remove(m);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
|
|
@ -12,8 +12,8 @@ abstract class Medium {
|
|||
abstract public String getDatum();
|
||||
abstract public int getKennnummer();
|
||||
|
||||
public String getAutor() {
|
||||
return autor;
|
||||
public String getAutor(){
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -147,6 +147,7 @@ class Brettspiel extends Medium{
|
|||
public int getJahr() {
|
||||
return erscheinungsjahr;
|
||||
}
|
||||
|
||||
public String getAutor() {
|
||||
return null;
|
||||
}
|
||||
|
@ -182,6 +183,7 @@ class Videospiel extends Medium{
|
|||
public int getJahr() {
|
||||
return erscheinungsjahr;
|
||||
}
|
||||
|
||||
public String getAutor() {
|
||||
return null;
|
||||
}
|
||||
|
|
|
@ -14,7 +14,6 @@ public class BibliothekGUI extends JFrame implements ActionListener{
|
|||
SwingUtilities.invokeLater(BibliothekGUI::new);
|
||||
}
|
||||
|
||||
|
||||
public BibliothekGUI() {
|
||||
Bibliothek.makeEntries();
|
||||
JPanel loginPanel = new JPanel(new BorderLayout());
|
||||
|
@ -80,12 +79,10 @@ public class BibliothekGUI extends JFrame implements ActionListener{
|
|||
cl.show(mainPanel, "userList");
|
||||
}
|
||||
|
||||
|
||||
private static void changeOwedMenu() {
|
||||
|
||||
}
|
||||
|
||||
|
||||
public static void openMainMenu(Kunde k) {
|
||||
JPanel mediumPanel = new JPanel(new GridLayout(10, 1, 10, 10));
|
||||
JLabel text1 = new JLabel("Ihre Kennnnummer: " + k.getKennnummer());
|
||||
|
@ -221,7 +218,6 @@ public class BibliothekGUI extends JFrame implements ActionListener{
|
|||
cl.show(mainPanel, "Brettspiele");
|
||||
}
|
||||
|
||||
|
||||
private static void vsMenu() {
|
||||
int i = Bibliothek.vsLänge();
|
||||
JPanel vsMenü = new JPanel(new GridLayout(i+1, 2, 10, 10));
|
||||
|
@ -236,7 +232,6 @@ public class BibliothekGUI extends JFrame implements ActionListener{
|
|||
cl.show(mainPanel, "Videospiele");
|
||||
}
|
||||
|
||||
|
||||
private static void myBooks(Kunde k) {
|
||||
int i = k.ausgelieheneMedienLänge();
|
||||
JPanel myBookMenu = new JPanel(new BorderLayout());
|
||||
|
@ -255,10 +250,8 @@ public class BibliothekGUI extends JFrame implements ActionListener{
|
|||
cl.show(mainPanel, "AusgelieheneMedien");
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
public void actionPerformed(ActionEvent e) {
|
||||
}
|
||||
|
||||
|
||||
}
|
Loading…
Reference in New Issue