|
|
@ -42,6 +42,9 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
|
public static int expenses; |
|
|
|
public static int balance; |
|
|
|
private JTextField textExpensesName; |
|
|
|
private JLabel ausgabenName; |
|
|
|
private JLabel ausgabenBetrag; |
|
|
|
private JLabel budgetBetrag; |
|
|
|
|
|
|
|
/** |
|
|
|
* Launch the application. |
|
|
@ -179,6 +182,18 @@ public class MeinGui extends JFrame implements ActionListener { |
|
|
|
textExpensesName.setBounds(60, 221, 128, 20); |
|
|
|
contentPane.add(textExpensesName); |
|
|
|
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); |
|
|
|
text2.addActionListener(this); |
|
|
|