summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java
diff options
context:
space:
mode:
authorMichael Wilson2014-11-20 19:10:10 +0100
committerMichael Wilson2014-11-20 19:10:10 +0100
commitc067221e05dcf17d6b86772b1135640d14cfcd28 (patch)
tree42a1dcac2c293fc5a8e2eefb85289ad6ff70a065 /dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java
parentLists now have the functionality to show complete lists, when role=="Admin" (diff)
parent• replaced getText() with getText().trim() (diff)
downloadtutor-module-c067221e05dcf17d6b86772b1135640d14cfcd28.tar.gz
tutor-module-c067221e05dcf17d6b86772b1135640d14cfcd28.tar.xz
tutor-module-c067221e05dcf17d6b86772b1135640d14cfcd28.zip
Merge branch 'master' of ssh://git.openslx.org/openslx-ng/tutor-module
Diffstat (limited to 'dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java')
-rw-r--r--dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java16
1 files changed, 9 insertions, 7 deletions
diff --git a/dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java b/dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java
index 47414981..58fadc72 100644
--- a/dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java
+++ b/dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java
@@ -114,6 +114,13 @@ public class DeleteLecture_GUI extends JFrame {
* Create the dialog.
*/
public DeleteLecture_GUI(Component formerGUI) {
+
+ try {
+ client.setTokenForSession(SessionData.session.getAuthToken());
+ } catch (TException e1) {
+ // TODO Auto-generated catch block
+ e1.printStackTrace();
+ }
filters.add(RowFilter.regexFilter(".", 0));
rf = RowFilter.orFilter(filters);
@@ -242,7 +249,7 @@ public class DeleteLecture_GUI extends JFrame {
@Override
public void keyReleased(KeyEvent e) {
// Textfield eingabe auslesen
- String stext = textFieldName.getText();
+ String stext = textFieldName.getText().trim();
// Wenn Textfield nicht leer
if (stext != "") {
activeSearch = true;
@@ -598,12 +605,7 @@ public class DeleteLecture_GUI extends JFrame {
}
});
menuBar.add(mnNewMenu_Info);
- try {
- client.setTokenForSession(SessionData.session.getAuthToken());
- } catch (TException e1) {
- // TODO Auto-generated catch block
- e1.printStackTrace();
- }
+
c = this;
}