|
@ -42,6 +42,9 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
public static int expenses; |
|
|
public static int expenses; |
|
|
public static int balance; |
|
|
public static int balance; |
|
|
private JTextField textExpensesName; |
|
|
private JTextField textExpensesName; |
|
|
|
|
|
private JLabel ausgabenName; |
|
|
|
|
|
private JLabel ausgabenBetrag; |
|
|
|
|
|
private JLabel budgetBetrag; |
|
|
|
|
|
|
|
|
/** |
|
|
/** |
|
|
* Launch the application. |
|
|
* Launch the application. |
|
@ -180,6 +183,18 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
contentPane.add(textExpensesName); |
|
|
contentPane.add(textExpensesName); |
|
|
textExpensesName.setColumns(10); |
|
|
textExpensesName.setColumns(10); |
|
|
|
|
|
|
|
|
|
|
|
ausgabenName = new JLabel(" Name"); |
|
|
|
|
|
ausgabenName.setBounds(10, 224, 46, 14); |
|
|
|
|
|
contentPane.add(ausgabenName); |
|
|
|
|
|
|
|
|
|
|
|
ausgabenBetrag = new JLabel(" Betrag"); |
|
|
|
|
|
ausgabenBetrag.setBounds(10, 253, 46, 14); |
|
|
|
|
|
contentPane.add(ausgabenBetrag); |
|
|
|
|
|
|
|
|
|
|
|
budgetBetrag = new JLabel(" Betrag"); |
|
|
|
|
|
budgetBetrag.setBounds(10, 100, 46, 14); |
|
|
|
|
|
contentPane.add(budgetBetrag); |
|
|
|
|
|
|
|
|
text1.addActionListener(this); |
|
|
text1.addActionListener(this); |
|
|
text2.addActionListener(this); |
|
|
text2.addActionListener(this); |
|
|
senden.addActionListener(this); |
|
|
senden.addActionListener(this); |
|
|