summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java
diff options
context:
space:
mode:
authorStephan Schwaer2015-10-19 17:14:10 +0200
committerStephan Schwaer2015-10-19 17:14:10 +0200
commite2d1d5b1c8842a10691b87c0ddc6e544bf0b4ee2 (patch)
treea25197b9ede56ce09f8d874fbce2548ee724bfee /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java
parent[client] Prevent student to switch to imageList with menuButton. (diff)
downloadtutor-module-e2d1d5b1c8842a10691b87c0ddc6e544bf0b4ee2.tar.gz
tutor-module-e2d1d5b1c8842a10691b87c0ddc6e544bf0b4ee2.tar.xz
tutor-module-e2d1d5b1c8842a10691b87c0ddc6e544bf0b4ee2.zip
[client] Make deselection in tables possible when clicking on empty space.
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java7
1 files changed, 6 insertions, 1 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java
index 20795474..476a9a2e 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureListWindowLayout.java
@@ -4,6 +4,8 @@ import java.awt.BorderLayout;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.GridBagLayout;
+import java.awt.event.MouseAdapter;
+import java.awt.event.MouseEvent;
import javax.swing.BorderFactory;
import javax.swing.Box;
@@ -19,6 +21,7 @@ import javax.swing.border.TitledBorder;
import org.openslx.dozmod.gui.control.QLabel;
import org.openslx.dozmod.gui.control.table.LectureTable;
+import org.openslx.dozmod.gui.control.table.QScrollPane;
import org.openslx.dozmod.gui.helper.CompositePage;
import org.openslx.dozmod.gui.helper.GridManager;
import org.openslx.dozmod.gui.window.LectureListWindow.FilterType;
@@ -89,7 +92,9 @@ public abstract class LectureListWindowLayout extends CompositePage {
tableGrid.add(filterPanel).fill(true, false).expand(true, false);
tableGrid.nextRow();
- JScrollPane jsp = new JScrollPane(lectureTable);
+ QScrollPane jsp = new QScrollPane(lectureTable);
+
+
jsp.setBackground(UIManager.getColor("Table.background"));
tableGrid.add(jsp).fill(true, true).expand(true, true);
tableGrid.nextRow();