summaryrefslogtreecommitdiffstats
path: root/Dozentenmodul/src/gui/intro/Login_GUI.java
diff options
context:
space:
mode:
authorunknown2014-04-16 10:48:10 +0200
committerunknown2014-04-16 10:48:10 +0200
commita3c0327dbd49efc29ede542f7093638941a7ae13 (patch)
treed12dfa309fab540ed6e35bbf1be8e0893665420b /Dozentenmodul/src/gui/intro/Login_GUI.java
parentMerge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module (diff)
downloadtutor-module-a3c0327dbd49efc29ede542f7093638941a7ae13.tar.gz
tutor-module-a3c0327dbd49efc29ede542f7093638941a7ae13.tar.xz
tutor-module-a3c0327dbd49efc29ede542f7093638941a7ae13.zip
Debugging: Jeder Fehler poppt auf in einem Textfenster und kann analysiert werden
Diffstat (limited to 'Dozentenmodul/src/gui/intro/Login_GUI.java')
-rw-r--r--Dozentenmodul/src/gui/intro/Login_GUI.java16
1 files changed, 16 insertions, 0 deletions
diff --git a/Dozentenmodul/src/gui/intro/Login_GUI.java b/Dozentenmodul/src/gui/intro/Login_GUI.java
index aa28b3b6..0efbe3cb 100644
--- a/Dozentenmodul/src/gui/intro/Login_GUI.java
+++ b/Dozentenmodul/src/gui/intro/Login_GUI.java
@@ -69,6 +69,9 @@ public class Login_GUI extends JFrame {
} catch (Exception e) {
e.printStackTrace();
+ JOptionPane.showMessageDialog(null,
+ e.getStackTrace(),
+ "Message", JOptionPane.ERROR_MESSAGE);
}
}
});
@@ -94,6 +97,9 @@ public class Login_GUI extends JFrame {
| IllegalAccessException | UnsupportedLookAndFeelException e) {
// TODO Auto-generated catch block
e.printStackTrace();
+ JOptionPane.showMessageDialog(null,
+ e.getCause()+"\n"+e.getMessage(),
+ "Debug-Message", JOptionPane.ERROR_MESSAGE);
}
// Titel des Fensters setzen
setTitle("Dozentenmodul *Prototyp*");
@@ -260,6 +266,9 @@ public class Login_GUI extends JFrame {
} catch (IOException | TException e) {
// TODO Auto-generated catch block
e.printStackTrace();
+ JOptionPane.showMessageDialog(null,
+ e.getCause()+"\n"+e.getMessage(),
+ "Debug-Message", JOptionPane.ERROR_MESSAGE);
}
} else {
@@ -284,10 +293,17 @@ public class Login_GUI extends JFrame {
"Benutzeranmeldung fehlgeschlagen: Bitte Benutzername und Passwort überprüfen.",
"Anmeldung fehlgeschlagen",
JOptionPane.ERROR_MESSAGE);
+ e.printStackTrace();
+ JOptionPane.showMessageDialog(null,
+ e.getCause()+"\n"+e.getMessage(),
+ "Message", JOptionPane.ERROR_MESSAGE);
return;
} catch (TException e) {
// TODO Auto-generated catch block
e.printStackTrace();
+ JOptionPane.showMessageDialog(null,
+ e.getCause()+"\n"+e.getMessage(),
+ "Debug-Message", JOptionPane.ERROR_MESSAGE);
return;
}
}// end performLogin