Browse Source

Commit_11 Methode exitButton() hinzugefuegt

Eduard2
Adah Boukhari 5 years ago
parent
commit
45fd4563f6
  1. 1
      Budget Projekt/.classpath
  2. BIN
      Budget Projekt/bin/MeinBudgetView/MeinGui.class
  3. 24
      Budget Projekt/src/MeinBudgetView/MeinGui.java

1
Budget Projekt/.classpath

@ -7,5 +7,6 @@
</classpathentry> </classpathentry>
<classpathentry kind="src" path="src"/> <classpathentry kind="src" path="src"/>
<classpathentry kind="src" path="Image"/> <classpathentry kind="src" path="Image"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/5"/>
<classpathentry kind="output" path="bin"/> <classpathentry kind="output" path="bin"/>
</classpath> </classpath>

BIN
Budget Projekt/bin/MeinBudgetView/MeinGui.class

24
Budget Projekt/src/MeinBudgetView/MeinGui.java

@ -180,11 +180,16 @@ public class MeinGui extends JFrame implements ActionListener {
@Override @Override
public void actionPerformed(ActionEvent ae) { public void actionPerformed(ActionEvent ae) {
int budget = Integer.parseInt(this.text1.getText());
if (ae.getSource() == this.exit) { if (ae.getSource() == this.exit) {
System.exit(0);
exitButton();
}
/**
if (ae.getSource() == this.loeschen) {
leerButton();
} }
**/
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)) {
this.budgetDispaly.setText(budget + " €"); this.budgetDispaly.setText(budget + " €");
} }
@ -197,4 +202,17 @@ public class MeinGui extends JFrame implements ActionListener {
} }
public void exitButton() {
System.exit(0);
}
/**
public void leerButton() {
this.text1.setText("");
this.text2.setText("");
this.budgetDispaly.setText("");
this.expensesDisplay.setText("");
this.balanceDisplay.setText("");
}
**/
} }
Loading…
Cancel
Save