You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
|
package MeinBudgetView;
import java.awt.BorderLayout; import java.awt.EventQueue;
import javax.swing.JFrame; import javax.swing.JPanel; import javax.swing.border.EmptyBorder; import javax.swing.JButton; import javax.swing.JPasswordField; import javax.swing.JTextField; import javax.swing.JLabel; import java.awt.Color;
public class LoginFrame extends JFrame {
private JPanel contentPane; private JPasswordField passwordField; private JTextField textField;
/** * Launch the application. */ public static void main(String[] args) { EventQueue.invokeLater(new Runnable() { public void run() { try { LoginFrame frame = new LoginFrame(); frame.setVisible(true); } catch (Exception e) { e.printStackTrace(); } } }); }
/** * Create the frame. */ public LoginFrame() { setTitle("Anmelden"); setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); setBounds(100, 100, 450, 300); contentPane = new JPanel(); contentPane.setBackground(Color.WHITE); contentPane.setBorder(new EmptyBorder(5, 5, 5, 5)); setContentPane(contentPane); contentPane.setLayout(null); JButton anmelden = new JButton("Anmelden"); anmelden.setBounds(182, 168, 97, 23); contentPane.add(anmelden); passwordField = new JPasswordField(); passwordField.setBounds(147, 137, 132, 20); contentPane.add(passwordField); textField = new JTextField(); textField.setBounds(147, 106, 132, 20); contentPane.add(textField); textField.setColumns(10); JLabel lblNewLabel = new JLabel("Benutzername:"); lblNewLabel.setBounds(48, 106, 89, 20); contentPane.add(lblNewLabel); JLabel lblNewLabel_1 = new JLabel("Password: "); lblNewLabel_1.setBounds(61, 140, 76, 14); contentPane.add(lblNewLabel_1); } }
|