|
@ -92,8 +92,8 @@ public class LoginFrame extends JFrame implements ActionListener { |
|
|
contentPane.add(loginHauptImage); |
|
|
contentPane.add(loginHauptImage); |
|
|
|
|
|
|
|
|
this.anmelden.addActionListener(this); |
|
|
this.anmelden.addActionListener(this); |
|
|
this.passwordField.addActionListener(this); |
|
|
|
|
|
this.benutzername.addActionListener(this); |
|
|
|
|
|
|
|
|
passwordField.addActionListener(this); |
|
|
|
|
|
benutzername.addActionListener(this); |
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
@Override |
|
|
@Override |
|
@ -103,6 +103,13 @@ public class LoginFrame extends JFrame implements ActionListener { |
|
|
&& (benutzername.getText().length() == 0 || passwordField.getText().length() == 0)) { |
|
|
&& (benutzername.getText().length() == 0 || passwordField.getText().length() == 0)) { |
|
|
JOptionPane.showMessageDialog(anmelden, "Bitte geben Sie die richtigen Daten ein!"); |
|
|
JOptionPane.showMessageDialog(anmelden, "Bitte geben Sie die richtigen Daten ein!"); |
|
|
} |
|
|
} |
|
|
|
|
|
if (ae.getSource() == this.anmelden && benutzername.getText().length() > 0 |
|
|
|
|
|
&& passwordField.getText().length() > 0) { |
|
|
|
|
|
MeinGui run = new MeinGui(); |
|
|
|
|
|
run.setVisible(true); |
|
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
} |
|
|
} |
|
|
|
|
|
|
|
|
public static String setBenutzername() { |
|
|
public static String setBenutzername() { |
|
|