|
|
@ -326,6 +326,9 @@ public class MeinGui extends JFrame implements ActionListener, KeyListener { |
|
|
|
expenses += Double.parseDouble(text2.getText()); |
|
|
|
expensesDisplay.setText(setExpensesView()); |
|
|
|
balanceDisplay.setText(setBalanceView()); |
|
|
|
textExpensesName.setText(null); |
|
|
|
text2.setText(null); |
|
|
|
|
|
|
|
} |
|
|
|
catch (Exception e) { |
|
|
|
showMessageDialog(null, "Sie muessen Ihre Ausgabe eingeben!"); |
|
|
@ -368,9 +371,9 @@ public class MeinGui extends JFrame implements ActionListener, KeyListener { |
|
|
|
public static void leeren() { |
|
|
|
text1.setText(""); |
|
|
|
text2.setText(""); |
|
|
|
budgetDispaly.setText("0.0 €"); |
|
|
|
expensesDisplay.setText("0.0 €"); |
|
|
|
balanceDisplay.setText("0.0 €"); |
|
|
|
budgetDispaly.setText("0.0 �"); |
|
|
|
expensesDisplay.setText("0.0 �"); |
|
|
|
balanceDisplay.setText("0.0 �"); |
|
|
|
textExpensesName.setText(""); |
|
|
|
budget = 0.0; |
|
|
|
expenses = 0.0; |
|
|
@ -381,7 +384,6 @@ public class MeinGui extends JFrame implements ActionListener, KeyListener { |
|
|
|
expensesDisplay.setText("0.0 \u20AC"); |
|
|
|
balanceDisplay.setText("0.0 \u20AC"); |
|
|
|
textExpensesName.setText(null); |
|
|
|
|
|
|
|
((DefaultTableModel) myTable.getModel()).setRowCount(0); |
|
|
|
} |
|
|
|
|
|
|
|