summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/gui/intro/Login_GUI.java
diff options
context:
space:
mode:
authorMichael Wilson2014-08-25 12:31:26 +0200
committerMichael Wilson2014-08-25 12:31:26 +0200
commitd1268aa0f6c7500d3f11ee29a371e8f6dcfa49cb (patch)
tree43dff620e925e585fd94302268da08b3fb421561 /Dozentenmodul/src/gui/intro/Login_GUI.java
parentMenü reagiert Rolle des Benutzers (diff)
downloadtutor-module-d1268aa0f6c7500d3f11ee29a371e8f6dcfa49cb.tar.gz
tutor-module-d1268aa0f6c7500d3f11ee29a371e8f6dcfa49cb.tar.xz
tutor-module-d1268aa0f6c7500d3f11ee29a371e8f6dcfa49cb.zip
diverses
Diffstat (limited to 'Dozentenmodul/src/gui/intro/Login_GUI.java')
-rw-r--r--Dozentenmodul/src/gui/intro/Login_GUI.java18
1 files changed, 12 insertions, 6 deletions
diff --git a/Dozentenmodul/src/gui/intro/Login_GUI.java b/Dozentenmodul/src/gui/intro/Login_GUI.java
index c916c440..112ee228 100644
--- a/Dozentenmodul/src/gui/intro/Login_GUI.java
+++ b/Dozentenmodul/src/gui/intro/Login_GUI.java
@@ -200,7 +200,13 @@ public class Login_GUI extends JFrame {
JLabel LabelPass = new JLabel("bwIDM-Passwort:");
LabelPass.setBounds(111, 195, 134, 20);
contentPane.add(LabelPass);
-
+
+ lblConnectionInfo.setHorizontalAlignment(SwingConstants.LEFT);
+ lblConnectionInfo.setBounds(111, 290, 418, 20);
+ lblConnectionInfo.setEnabled(true);
+ lblConnectionInfo.setText("Info: Bereit für Login");
+ contentPane.add(lblConnectionInfo);
+
// Erzeugen, Hinzufuegen und definierung der Aktion des Buttons
JButton BtnLogin = new JButton("Login");
BtnLogin.addActionListener(new ActionListener() {
@@ -215,9 +221,7 @@ public class Login_GUI extends JFrame {
- lblConnectionInfo.setHorizontalAlignment(SwingConstants.LEFT);
- lblConnectionInfo.setBounds(111, 290, 418, 20);
- contentPane.add(lblConnectionInfo);
+
//GuiOrganizer.centerGUI(this);
@@ -242,6 +246,7 @@ public class Login_GUI extends JFrame {
// package has information
//User-Info
+
System.out.println("Authentifiziere - warte auf Masterserver");
lblConnectionInfo.setForeground(Color.black);
lblConnectionInfo.setText("Authentifiziere - warte auf Antwort von Server...");
@@ -295,7 +300,7 @@ public class Login_GUI extends JFrame {
person.verantwortlicher.setVorname(user.firstName);
person.verantwortlicher.setEMail(user.eMail);
person.verantwortlicher.setHochschule(hochschule);
- //Später über result.getRole zum Beispiel die Rolle holen
+ //Sp�ter �ber result.getRole zum Beispiel die Rolle holen
person.verantwortlicher.setRole("Student");
try {
@@ -383,10 +388,11 @@ public class Login_GUI extends JFrame {
public boolean checkClientPackage() {
// check if client is null or has been returned with information
+ System.out.println("Prüfe Eingangsdaten");
if (client != null) {
// client contains information
isClientReturnedCorrectly = true;
- System.out.println("Verbindungsinformationen erhalten");
+ System.out.println("Verbindungsdaten erhalten");
} else {
// client has returned with error
isClientReturnedCorrectly = false;