|
|
@ -2,10 +2,13 @@ package MeinBudgetView; |
|
|
|
|
|
|
|
import java.awt.BorderLayout; |
|
|
|
import java.awt.EventQueue; |
|
|
|
import java.awt.Font; |
|
|
|
import java.awt.Image; |
|
|
|
|
|
|
|
import javax.swing.JFrame; |
|
|
|
import javax.swing.JPanel; |
|
|
|
import javax.swing.border.EmptyBorder; |
|
|
|
import javax.swing.ImageIcon; |
|
|
|
import javax.swing.JButton; |
|
|
|
import javax.swing.JPasswordField; |
|
|
|
import javax.swing.JTextField; |
|
|
@ -43,7 +46,7 @@ public class LoginFrame extends JFrame { |
|
|
|
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); |
|
|
|
setBounds(100, 100, 450, 300); |
|
|
|
contentPane = new JPanel(); |
|
|
|
contentPane.setBackground(Color.WHITE); |
|
|
|
contentPane.setBackground(Color.CYAN); |
|
|
|
contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); |
|
|
|
setContentPane(contentPane); |
|
|
|
contentPane.setLayout(null); |
|
|
@ -61,12 +64,28 @@ public class LoginFrame extends JFrame { |
|
|
|
contentPane.add(textField); |
|
|
|
textField.setColumns(10); |
|
|
|
|
|
|
|
JLabel lblNewLabel = new JLabel("Benutzername:"); |
|
|
|
lblNewLabel.setBounds(48, 106, 89, 20); |
|
|
|
contentPane.add(lblNewLabel); |
|
|
|
JLabel labaelBenutzername = new JLabel("Benutzername:"); |
|
|
|
labaelBenutzername.setBounds(48, 106, 89, 20); |
|
|
|
contentPane.add(labaelBenutzername); |
|
|
|
|
|
|
|
JLabel labelPassword = new JLabel("Password: "); |
|
|
|
labelPassword.setBounds(61, 140, 76, 14); |
|
|
|
contentPane.add(labelPassword); |
|
|
|
|
|
|
|
JLabel loginImage = new JLabel(""); |
|
|
|
loginImage.setBounds(313, 106, 56, 51); |
|
|
|
Image image1 = new ImageIcon(this.getClass().getResource("/login-icon.png")).getImage(); |
|
|
|
loginImage.setIcon(new ImageIcon(image1)); |
|
|
|
loginImage.setFont(new Font("Tahoma", Font.BOLD, 13)); |
|
|
|
contentPane.add(loginImage); |
|
|
|
|
|
|
|
|
|
|
|
JLabel loginHauptImage = new JLabel(""); |
|
|
|
loginHauptImage.setBounds(10, 11, 56, 51); |
|
|
|
Image image2 = new ImageIcon(this.getClass().getResource("/budgetapp.png")).getImage(); |
|
|
|
loginHauptImage.setIcon(new ImageIcon(image2)); |
|
|
|
loginHauptImage.setFont(new Font("Tahoma", Font.BOLD, 13)); |
|
|
|
contentPane.add(loginHauptImage); |
|
|
|
|
|
|
|
JLabel lblNewLabel_1 = new JLabel("Password: "); |
|
|
|
lblNewLabel_1.setBounds(61, 140, 76, 14); |
|
|
|
contentPane.add(lblNewLabel_1); |
|
|
|
} |
|
|
|
} |