|
@ -33,7 +33,7 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
JLabel leeren; |
|
|
JLabel leeren; |
|
|
JButton loeschen; |
|
|
JButton loeschen; |
|
|
JButton exit; |
|
|
JButton exit; |
|
|
private static JLabel budgetDispaly; |
|
|
|
|
|
|
|
|
private static JLabel budgetDispaly; |
|
|
private static JLabel expensesDisplay; |
|
|
private static JLabel expensesDisplay; |
|
|
private static JLabel balanceDisplay; |
|
|
private static JLabel balanceDisplay; |
|
|
private static int budget; |
|
|
private static int budget; |
|
@ -216,20 +216,16 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
balanceDisplay.setText(""); |
|
|
balanceDisplay.setText(""); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void BudgetView() { |
|
|
public static void BudgetView() { |
|
|
budgetDispaly.setText(budget + " €"); |
|
|
|
|
|
|
|
|
budgetDispaly.setText(budget + " €"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void expensesView() { |
|
|
public static void expensesView() { |
|
|
expensesDisplay.setText(expenses - budget + " €"); |
|
|
|
|
|
|
|
|
expensesDisplay.setText(expenses - budget + " €"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public static void balanceView() { |
|
|
public static void balanceView() { |
|
|
balanceDisplay.setText(balance + " €"); |
|
|
|
|
|
|
|
|
balanceDisplay.setText(balance + " €"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |