|
@ -201,7 +201,7 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
expenses = budget - Integer.parseInt(text2.getText()); |
|
|
expenses = budget - Integer.parseInt(text2.getText()); |
|
|
expensesDisplay.setText(setExpensesView()); |
|
|
expensesDisplay.setText(setExpensesView()); |
|
|
balance = Integer.parseInt(text1.getText()) - Integer.parseInt(text2.getText()); |
|
|
balance = Integer.parseInt(text1.getText()) - Integer.parseInt(text2.getText()); |
|
|
setBalanceView(); |
|
|
|
|
|
|
|
|
balanceDisplay.setText(setBalanceView()); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
@ -229,8 +229,9 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
return result; |
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static void setBalanceView() { |
|
|
|
|
|
balanceDisplay.setText(balance + " €"); |
|
|
|
|
|
|
|
|
public static String setBalanceView() { |
|
|
|
|
|
String result = balance + " €"; |
|
|
|
|
|
return result; |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |