summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java
diff options
context:
space:
mode:
authorSimon Rettberg2015-09-07 12:38:13 +0200
committerSimon Rettberg2015-09-07 12:38:13 +0200
commitffbc8df3b919e3b3ec4441cd55511b5414569299 (patch)
tree9c3acf213d5501ba0e4cf72273df5c2f359b6b36 /dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java
parent[client] Sanity checks in LectureDetailsWindow (diff)
downloadtutor-module-ffbc8df3b919e3b3ec4441cd55511b5414569299.tar.gz
tutor-module-ffbc8df3b919e3b3ec4441cd55511b5414569299.tar.xz
tutor-module-ffbc8df3b919e3b3ec4441cd55511b5414569299.zip
[client] Add a date picker that supports proper event for changes :)
Diffstat (limited to 'dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java
index 3a902b25..94f5ad21 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/window/layout/LectureDetailsWindowLayout.java
@@ -15,7 +15,6 @@ import javax.swing.Box;
import javax.swing.BoxLayout;
import javax.swing.JButton;
import javax.swing.JCheckBox;
-import javax.swing.JComboBox;
import javax.swing.JDialog;
import javax.swing.JFrame;
import javax.swing.JPanel;
@@ -33,6 +32,7 @@ import org.openslx.bwlp.thrift.iface.ImageVersionDetails;
import org.openslx.dozmod.gui.control.ComboBox;
import org.openslx.dozmod.gui.control.ComboBox.ComboBoxRenderer;
import org.openslx.dozmod.gui.control.PersonLabel;
+import org.openslx.dozmod.gui.control.QDatePickerImpl;
import org.openslx.dozmod.gui.control.QLabel;
import org.openslx.dozmod.gui.helper.GridManager;
import org.openslx.dozmod.util.DateLabelFormatter;
@@ -54,7 +54,7 @@ public abstract class LectureDetailsWindowLayout extends JDialog {
protected final QLabel lblStartTime;
protected final QLabel lblEndTime;
protected final JCheckBox chkAutoUpdate;
- protected final JComboBox<ImageVersionDetails> cboVersions;
+ protected final ComboBox<ImageVersionDetails> cboVersions;
protected final JCheckBox chkIsExam;
protected final JCheckBox chkHasInternetAccess;
protected final JCheckBox chkIsActive;
@@ -150,7 +150,7 @@ public abstract class LectureDetailsWindowLayout extends JDialog {
// start time of the lecture
JPanel startTimePanel = new JPanel(new BorderLayout());
- startDate = new JDatePickerImpl(new JDatePanelImpl(new UtilDateModel(new Date()), pickerStrings),
+ startDate = new QDatePickerImpl(new JDatePanelImpl(new UtilDateModel(new Date()), pickerStrings),
new DateLabelFormatter());
startTime = makeTimeSpinner(23, 59);
startTimePanel.add(startDate, BorderLayout.WEST);
@@ -162,7 +162,7 @@ public abstract class LectureDetailsWindowLayout extends JDialog {
// end time of the lecture
JPanel endTimePanel = new JPanel(new BorderLayout());
- endDate = new JDatePickerImpl(new JDatePanelImpl(new UtilDateModel(new Date()), pickerStrings),
+ endDate = new QDatePickerImpl(new JDatePanelImpl(new UtilDateModel(new Date()), pickerStrings),
new DateLabelFormatter());
endTime = makeTimeSpinner(00, 59);
endTimePanel.add(endDate, BorderLayout.WEST);