|
@ -33,12 +33,12 @@ 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; |
|
|
private static int expenses; |
|
|
private static int expenses; |
|
|
private static int balance; |
|
|
|
|
|
|
|
|
private static int balance; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Launch the application. |
|
|
* Launch the application. |
|
@ -215,21 +215,17 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
expensesDisplay.setText(""); |
|
|
expensesDisplay.setText(""); |
|
|
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 + " €"); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |