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