|
@ -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(""); |
|
|
|
|
|
} |
|
|
|
|
|
**/ |
|
|
} |
|
|
} |