Browse Source

Commit_12 Methode leerButton() implementiert

Eduard2
Adah Boukhari 5 years ago
parent
commit
b7a72cf041
  1. BIN
      Budget Projekt/bin/MeinBudgetView/MeinGui.class
  2. 6
      Budget Projekt/src/MeinBudgetView/MeinGui.java

BIN
Budget Projekt/bin/MeinBudgetView/MeinGui.class

6
Budget Projekt/src/MeinBudgetView/MeinGui.java

@ -183,11 +183,10 @@ public class MeinGui extends JFrame implements ActionListener {
if (ae.getSource() == this.exit) { if (ae.getSource() == this.exit) {
exitButton(); exitButton();
} }
/**
if (ae.getSource() == this.loeschen) { if (ae.getSource() == this.loeschen) {
leerButton(); leerButton();
} }
**/
int budget = Integer.parseInt(this.text1.getText()); int budget = Integer.parseInt(this.text1.getText());
if (ae.getSource() == this.senden && (this.text1 != null && this.text2 != null)) { if (ae.getSource() == this.senden && (this.text1 != null && this.text2 != null)) {
@ -206,7 +205,6 @@ public class MeinGui extends JFrame implements ActionListener {
System.exit(0); System.exit(0);
} }
/**
public void leerButton() { public void leerButton() {
this.text1.setText(""); this.text1.setText("");
this.text2.setText(""); this.text2.setText("");
@ -214,5 +212,5 @@ public class MeinGui extends JFrame implements ActionListener {
this.expensesDisplay.setText(""); this.expensesDisplay.setText("");
this.balanceDisplay.setText(""); this.balanceDisplay.setText("");
} }
**/
} }
Loading…
Cancel
Save