|
@ -255,7 +255,7 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
|
|
|
|
|
|
balance -= Double.parseDouble(text2.getText()); |
|
|
balance -= Double.parseDouble(text2.getText()); |
|
|
expenses += Double.parseDouble(text2.getText()); |
|
|
expenses += Double.parseDouble(text2.getText()); |
|
|
|
|
|
|
|
|
|
|
|
expensesDisplay.setText(setExpensesView()); |
|
|
balanceDisplay.setText(setBalanceView()); |
|
|
balanceDisplay.setText(setBalanceView()); |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
@ -286,4 +286,9 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static String setExpensesView() { |
|
|
|
|
|
String result = "-" + expenses + " €"; |
|
|
|
|
|
return result; |
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |