|
|
@ -6,6 +6,9 @@ import javax.swing.JFrame; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.border.EmptyBorder; |
|
|
|
import javax.swing.JTextField; |
|
|
|
import java.awt.Image; |
|
|
|
|
|
|
|
import javax.swing.ImageIcon; |
|
|
|
import javax.swing.JButton; |
|
|
|
import javax.swing.JLabel; |
|
|
|
import java.awt.Font; |
|
|
@ -15,6 +18,7 @@ public class MeinGui extends JFrame { |
|
|
|
private JPanel contentPane; |
|
|
|
private JTextField text1; |
|
|
|
private JTextField text2; |
|
|
|
JLabel lblNewLabel; |
|
|
|
|
|
|
|
/** |
|
|
|
* Launch the application. |
|
|
@ -63,10 +67,18 @@ public class MeinGui extends JFrame { |
|
|
|
contentPane.add(text2); |
|
|
|
text2.setColumns(10); |
|
|
|
|
|
|
|
JLabel labelBudgetEingeben = new JLabel("Budget eingeben"); |
|
|
|
labelBudgetEingeben.setFont(new Font("Estrangelo Edessa", Font.BOLD, 14)); |
|
|
|
labelBudgetEingeben.setBounds(10, 80, 110, 20); |
|
|
|
contentPane.add(labelBudgetEingeben); |
|
|
|
lblNewLabel = new JLabel(""); |
|
|
|
Image image0 = new ImageIcon(this.getClass().getResource("/budgetapp.png")).getImage(); |
|
|
|
lblNewLabel.setIcon(new ImageIcon(image0)); |
|
|
|
|
|
|
|
lblNewLabel.setFont(new Font("Tahoma", Font.BOLD, 13)); |
|
|
|
lblNewLabel.setBounds(10, 8, 86, 61); |
|
|
|
contentPane.add(lblNewLabel); |
|
|
|
|
|
|
|
JLabel budgetEingeben = new JLabel("Budget eingeben"); |
|
|
|
budgetEingeben.setFont(new Font("Estrangelo Edessa", Font.BOLD, 14)); |
|
|
|
budgetEingeben.setBounds(10, 80, 110, 20); |
|
|
|
contentPane.add(budgetEingeben); |
|
|
|
|
|
|
|
JLabel budget = new JLabel("Budget"); |
|
|
|
budget.setBounds(352, 39, 46, 14); |
|
|
@ -80,15 +92,16 @@ public class MeinGui extends JFrame { |
|
|
|
balance.setBounds(543, 39, 46, 14); |
|
|
|
contentPane.add(balance); |
|
|
|
|
|
|
|
JLabel labelBudgetAusgeben = new JLabel("Ausgaben"); |
|
|
|
labelBudgetAusgeben.setFont(new Font("Estrangelo Edessa", Font.BOLD, 14)); |
|
|
|
labelBudgetAusgeben.setBounds(10, 221, 63, 14); |
|
|
|
contentPane.add(labelBudgetAusgeben); |
|
|
|
|
|
|
|
JLabel EntraegeLeeren = new JLabel("Eintr\u00E4ge leeren"); |
|
|
|
EntraegeLeeren.setFont(new Font("Estrangelo Edessa", Font.BOLD, 14)); |
|
|
|
EntraegeLeeren.setBounds(432, 221, 115, 14); |
|
|
|
contentPane.add(EntraegeLeeren); |
|
|
|
JLabel budgetAusgeben = new JLabel("Ausgaben"); |
|
|
|
budgetAusgeben.setFont(new Font("Estrangelo Edessa", Font.BOLD, 14)); |
|
|
|
budgetAusgeben.setBounds(10, 221, 63, 14); |
|
|
|
contentPane.add(budgetAusgeben); |
|
|
|
|
|
|
|
JLabel eintraegeLeeren = new JLabel("Eintr\u00E4ge leeren"); |
|
|
|
eintraegeLeeren.setFont(new Font("Estrangelo Edessa", Font.BOLD, 14)); |
|
|
|
eintraegeLeeren.setBounds(432, 221, 115, 14); |
|
|
|
contentPane.add(eintraegeLeeren); |
|
|
|
|
|
|
|
JButton loeschen = new JButton("L\u00F6schen"); |
|
|
|
loeschen.setBounds(442, 239, 89, 30); |
|
|
|