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