diff options
| author | Nino Breuer | 2014-11-19 11:01:59 +0100 |
|---|---|---|
| committer | Nino Breuer | 2014-11-19 11:01:59 +0100 |
| commit | d854105b4ccf5993094691857716ee72f7640c62 (patch) | |
| tree | 3772205b3428a18bf3b6d3754983447cc22a7b0f /dozentenmodul/src/main/java/gui/lecture/SearchLecture_GUI.java | |
| parent | • added restriction: user is not allowed to change order of table columns (diff) | |
| download | tutor-module-d854105b4ccf5993094691857716ee72f7640c62.tar.gz tutor-module-d854105b4ccf5993094691857716ee72f7640c62.tar.xz tutor-module-d854105b4ccf5993094691857716ee72f7640c62.zip | |
• optimized single selection in lists in some cases
Diffstat (limited to 'dozentenmodul/src/main/java/gui/lecture/SearchLecture_GUI.java')
| -rw-r--r-- | dozentenmodul/src/main/java/gui/lecture/SearchLecture_GUI.java | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/dozentenmodul/src/main/java/gui/lecture/SearchLecture_GUI.java b/dozentenmodul/src/main/java/gui/lecture/SearchLecture_GUI.java index 2a286f80..89abc73a 100644 --- a/dozentenmodul/src/main/java/gui/lecture/SearchLecture_GUI.java +++ b/dozentenmodul/src/main/java/gui/lecture/SearchLecture_GUI.java @@ -40,6 +40,7 @@ import javax.swing.JTabbedPane; import javax.swing.JTable;
import javax.swing.JTextField;
import javax.swing.JTextPane;
+import javax.swing.ListSelectionModel;
import javax.swing.RowFilter;
import javax.swing.UIManager;
import javax.swing.UnsupportedLookAndFeelException;
@@ -159,7 +160,7 @@ public class SearchLecture_GUI extends JFrame { tablemyLectures.getColumnModel().getColumn(8).setMaxWidth(0);
tablemyLectures.getTableHeader().setReorderingAllowed(false);
-
+ tablemyLectures.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
tablemyLectures.addMouseListener(new MouseAdapter() {
@Override
@@ -190,7 +191,7 @@ public class SearchLecture_GUI extends JFrame { tableAllLectures.getColumnModel().getColumn(8).setMaxWidth(0);
tableAllLectures.getTableHeader().setReorderingAllowed(false);
-
+ tableAllLectures.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
tableAllLectures.addMouseListener(new MouseAdapter() {
@Override
|
