From 563dd22766f06c5db4c1aad5b50133d86f2ee22b Mon Sep 17 00:00:00 2001 From: Caner Date: Thu, 24 Nov 2022 14:23:10 +0100 Subject: [PATCH] New: deleted gui from main branch --- .../de/hs_mannheim/informatik/bank/Main.java | 10 +-- .../bank/gui/KontoAnlegenFrame.java | 66 ------------------- .../bank/gui/KontoListingFrame.java | 65 ------------------ 3 files changed, 1 insertion(+), 140 deletions(-) delete mode 100644 Bank-Beispiel/src/de/hs_mannheim/informatik/bank/gui/KontoAnlegenFrame.java delete mode 100644 Bank-Beispiel/src/de/hs_mannheim/informatik/bank/gui/KontoListingFrame.java diff --git a/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/Main.java b/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/Main.java index 65a0084..255a861 100644 --- a/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/Main.java +++ b/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/Main.java @@ -1,8 +1,7 @@ package de.hs_mannheim.informatik.bank; import de.hs_mannheim.informatik.bank.facade.Banksystem; -//import de.hs_mannheim.informatik.bank.gui.KontoAnlegenFrame; -//import de.hs_mannheim.informatik.bank.gui.KontoListingFrame; + import de.hs_mannheim.informatik.bank.tui.TUI; public class Main { @@ -12,13 +11,6 @@ public class Main { TUI tui = new TUI(bs); -// KontoAnlegenFrame kaf = new KontoAnlegenFrame(bs); -// kaf.setVisible(true); -// -// KontoListingFrame klf = new KontoListingFrame(bs); -// klf.setVisible(true); - - } } \ No newline at end of file diff --git a/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/gui/KontoAnlegenFrame.java b/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/gui/KontoAnlegenFrame.java deleted file mode 100644 index bee5791..0000000 --- a/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/gui/KontoAnlegenFrame.java +++ /dev/null @@ -1,66 +0,0 @@ -// package de.hs_mannheim.informatik.bank.gui; - -// //import java.awt.Container; -// import java.awt.event.ActionEvent; -// import java.awt.event.ActionListener; -// import java.io.IOException; - -// import javax.swing.JButton; -// import javax.swing.JFrame; -// import javax.swing.JScrollPane; -// import javax.swing.JTextArea; -// import javax.swing.JTextField; - -// import de.hs_mannheim.informatik.bank.facade.Banksystem; - -// public class KontoAnlegenFrame extends JFrame implements ActionListener { - -// private static final long serialVersionUID = 1L; -// private JTextField eingabe; -// private JTextArea ausgabe; -// private JButton ok; - -// private Banksystem bs; - -// public KontoAnlegenFrame(Banksystem bs) { -// this.bs = bs; - -// this.setTitle(bs.getBankname()); -// this.setSize(300, 300); -// this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - -// eingabe = new JTextField(20); - -// ausgabe = new JTextArea(5, 20); -// ausgabe.setLineWrap(true); -// ausgabe.setWrapStyleWord(true); - -// // Die Ausgabe automatisch scrollbar machen, wenn Sie nicht -// // mehr auf den Bildschirm passen sollte. -// JScrollPane sp = new JScrollPane(ausgabe); - -// ok = new JButton("Konto anlegen"); -// ok.addActionListener(this); - -// //Container cp = this.getContentPane(); -// this.add(eingabe, "North"); -// this.add(sp, "Center"); -// this.add(ok, "South"); -// } - -// @Override -// public void actionPerformed(ActionEvent e) { -// System.out.println("Konto anlegen..."); - -// try { -// int knr = bs.kontoAnlegen(eingabe.getText(), 1); - -// this.ausgabe.append("Neues Konto angelegt: " + knr + "\n"); -// } catch (IOException e1) { -// e1.printStackTrace(); -// } - -// } - -// } - diff --git a/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/gui/KontoListingFrame.java b/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/gui/KontoListingFrame.java deleted file mode 100644 index 7134caf..0000000 --- a/Bank-Beispiel/src/de/hs_mannheim/informatik/bank/gui/KontoListingFrame.java +++ /dev/null @@ -1,65 +0,0 @@ -// package de.hs_mannheim.informatik.bank.gui; - -// //import java.awt.Container; -// import java.awt.event.ActionEvent; -// import java.awt.event.ActionListener; - - -// import javax.swing.JButton; -// import javax.swing.JFrame; -// import javax.swing.JScrollPane; -// import javax.swing.JTextArea; -// import javax.swing.JTextField; - -// import de.hs_mannheim.informatik.bank.facade.Banksystem; - -// public class KontoListingFrame extends JFrame implements ActionListener { - -// private static final long serialVersionUID = 1L; -// private JTextField eingabe; -// private JTextArea ausgabe; -// private JButton ok; - -// private Banksystem bs; - -// public KontoListingFrame(Banksystem bs) { -// this.bs = bs; - -// this.setTitle(bs.getBankname()); -// this.setSize(300, 300); -// this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); - -// eingabe = new JTextField(20); - -// ausgabe = new JTextArea(5, 20); -// ausgabe.setLineWrap(true); -// ausgabe.setWrapStyleWord(true); - -// // Die Ausgabe automatisch scrollbar machen, wenn Sie nicht -// // mehr auf den Bildschirm passen sollte. -// JScrollPane sp = new JScrollPane(ausgabe); - -// ok = new JButton("Kontenliste abrufen"); -// ok.addActionListener(this); - -// //Container cp = this.getContentPane(); -// this.add(eingabe, "North"); -// this.add(sp, "Center"); -// this.add(ok, "South"); -// } - -// @Override -// public void actionPerformed(ActionEvent e) { -// System.out.println("Kontenliste abrufen..."); - -// ausgabe.setText(""); -// String[] konten = bs.getKontenliste(); - -// for (String konto : konten) { -// ausgabe.append(konto + "\n"); -// } - - -// } - -// }