summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java
diff options
context:
space:
mode:
authorNino Breuer2014-11-19 10:07:04 +0100
committerNino Breuer2014-11-19 10:07:04 +0100
commit8ad8f1f3fd36c1e3f8e14c84e3187f9777799c6e (patch)
treeb5d25ec42df91a21126ac37b1b714a2b7beee07f /dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java
parent• xml creation in server is not used anymore - removed (diff)
downloadtutor-module-8ad8f1f3fd36c1e3f8e14c84e3187f9777799c6e.tar.gz
tutor-module-8ad8f1f3fd36c1e3f8e14c84e3187f9777799c6e.tar.xz
tutor-module-8ad8f1f3fd36c1e3f8e14c84e3187f9777799c6e.zip
• fixed bug: wrong content of lists after de-selecting dropdown menu while filtering for images/lectures
• added single line selection restriction to lists • removed some unused imports
Diffstat (limited to 'dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java')
-rw-r--r--dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java10
1 files changed, 10 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java b/dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java
index 44e0c4f5..76f90f03 100644
--- a/dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java
+++ b/dozentenmodul/src/main/java/gui/lecture/DeleteLecture_GUI.java
@@ -161,6 +161,16 @@ public class DeleteLecture_GUI extends JFrame {
tablemyLectures.getColumnModel().getColumn(8).setWidth(0);
tablemyLectures.getColumnModel().getColumn(8).setMinWidth(0);
tablemyLectures.getColumnModel().getColumn(8).setMaxWidth(0);
+
+ tablemyLectures.addMouseListener(new MouseAdapter() {
+
+ @Override
+ public void mouseReleased(MouseEvent e) {
+
+ tablemyLectures.clearSelection(); //just one row is selectablemyLectures
+ tablemyLectures.setRowSelectionInterval(tablemyLectures.rowAtPoint(e.getPoint()), tablemyLectures.rowAtPoint(e.getPoint()));
+ }
+ });
}
});