diff options
author | Simon Rettberg | 2016-01-29 11:11:31 +0100 |
---|---|---|
committer | Simon Rettberg | 2016-01-29 11:11:31 +0100 |
commit | b52bf17ce8c201a65bf09e02df97255d5361fc02 (patch) | |
tree | 62d618c271b0512e69f3bcf6f8d287d5caa5ea4f | |
parent | [client] Sanitize coding style/conventions in GUI classes (diff) | |
download | tutor-module-b52bf17ce8c201a65bf09e02df97255d5361fc02.tar.gz tutor-module-b52bf17ce8c201a65bf09e02df97255d5361fc02.tar.xz tutor-module-b52bf17ce8c201a65bf09e02df97255d5361fc02.zip |
[client] Show lecture valid days in red if < 7 days
-rw-r--r-- | dozentenmodul/src/main/java/org/openslx/dozmod/gui/wizard/page/LectureCreationPage.java | 2 |
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); } } |