|
|
@ -33,12 +33,12 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
|
JLabel leeren; |
|
|
|
JButton loeschen; |
|
|
|
JButton exit; |
|
|
|
private static JLabel budgetDispaly; |
|
|
|
private static JLabel budgetDispaly; |
|
|
|
private static JLabel expensesDisplay; |
|
|
|
private static JLabel balanceDisplay; |
|
|
|
private static int budget; |
|
|
|
private static int expenses; |
|
|
|
private static int balance; |
|
|
|
private static int balance; |
|
|
|
|
|
|
|
/** |
|
|
|
* Launch the application. |
|
|
@ -215,21 +215,17 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
|
expensesDisplay.setText(""); |
|
|
|
balanceDisplay.setText(""); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void BudgetView() { |
|
|
|
budgetDispaly.setText(budget + " €"); |
|
|
|
budgetDispaly.setText(budget + " €"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void expensesView() { |
|
|
|
expensesDisplay.setText(expenses - budget + " €"); |
|
|
|
expensesDisplay.setText(expenses - budget + " €"); |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
public static void balanceView() { |
|
|
|
balanceDisplay.setText(balance + " €"); |
|
|
|
balanceDisplay.setText(balance + " €"); |
|
|
|
} |
|
|
|
|
|
|
|
} |