summaryrefslogtreecommitdiffstats
path: root/dozentenmodul/src/main
diff options
context:
space:
mode:
authorSimon Rettberg2016-01-29 11:11:31 +0100
committerSimon Rettberg2016-01-29 11:11:31 +0100
commitb52bf17ce8c201a65bf09e02df97255d5361fc02 (patch)
tree62d618c271b0512e69f3bcf6f8d287d5caa5ea4f /dozentenmodul/src/main
parent[client] Sanitize coding style/conventions in GUI classes (diff)
downloadtutor-module-b52bf17ce8c201a65bf09e02df97255d5361fc02.tar.gz
tutor-module-b52bf17ce8c201a65bf09e02df97255d5361fc02.tar.xz
tutor-module-b52bf17ce8c201a65bf09e02df97255d5361fc02.zip
[client] Show lecture valid days in red if < 7 days
Diffstat (limited to 'dozentenmodul/src/main')
-rw-r--r--dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureCreationPage.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureCreationPage.java b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureCreationPage.java
index 737aa4c0..9bb91409 100644
--- a/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureCreationPage.java
+++ b/dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureCreationPage.java
@@ -1,5 +1,6 @@
package org.openslx.dozmod.gui.wizard.page;
+import java.awt.Color;
import java.awt.event.ActionEvent;
import java.awt.event.ActionListener;
import java.util.Date;
@@ -95,6 +96,7 @@ public class LectureCreationPage extends LectureCreationPageLayout {
} else {
int numberOfDays = DateTimeHelper.calculatePeriodInDays(start, end);
lblCalcPeriod.setText(numberOfDays + "Tag(e)");
+ lblCalcPeriod.setForeground(numberOfDays < 7 ? Color.RED : null);
}
}