From d8d9d9408c91d4f38761a9d5a718a2600bd551a8 Mon Sep 17 00:00:00 2001 From: Nino Breuer Date: Tue, 26 May 2015 14:15:31 +0200 Subject: • Lecture max. lifetime restriction removed (commented, to be discussed) --- .../java/gui/lecture/EditLectureAllgemein_GUI.java | 18 ++++++++++++------ 1 file changed, 12 insertions(+), 6 deletions(-) (limited to 'dozentenmodul/src/main/java/gui/lecture/EditLectureAllgemein_GUI.java') diff --git a/dozentenmodul/src/main/java/gui/lecture/EditLectureAllgemein_GUI.java b/dozentenmodul/src/main/java/gui/lecture/EditLectureAllgemein_GUI.java index 63de493f..e06611db 100644 --- a/dozentenmodul/src/main/java/gui/lecture/EditLectureAllgemein_GUI.java +++ b/dozentenmodul/src/main/java/gui/lecture/EditLectureAllgemein_GUI.java @@ -389,19 +389,24 @@ public class EditLectureAllgemein_GUI extends JInternalFrame { public void actionPerformed(ActionEvent e) { // liegt das End-Datum vor dem Start-Datum? - if (dateChooserend.getDate().before(dateChooserstart.getDate())) { + if (dateChooserend.getDate().before(dateChooserstart.getDate())) + { // datum ist falsch rum isDateOrderCorrect = false; JOptionPane.showMessageDialog(null, "Das End-Datum liegt vor dem Start-Datum. Bitte ändern.", "Datum fehlerhaft", JOptionPane.INFORMATION_MESSAGE); - } else { + } else + { // bereit isDateOrderCorrect = true; } // liegt das eingegebene Datum nach dem erlaubten // End-Datum? - if (dateChooserend.getDate().after(endDate)) { + + /* + if (dateChooserend.getDate().after(endDate)) + { // Datum zu weit weg isDateMaxLifeTimeCorrect = false; JOptionPane.showMessageDialog(null, @@ -410,10 +415,12 @@ public class EditLectureAllgemein_GUI extends JInternalFrame { dateChooserend.setDate(endDate); // setze Datum auf // maximum - } else { + } else + { // bereit isDateMaxLifeTimeCorrect = true; } + */ // Pruefen ob alles eingegeben wurde if (textFieldLaborname.getText().trim().isEmpty() == true || description.getText().trim().isEmpty() == true) { @@ -435,8 +442,7 @@ public class EditLectureAllgemein_GUI extends JInternalFrame { } // Pruefe ob alle Eingaben korrekt sind, dann mache // weiter - if (isAllInformationReady == true && isDateMaxLifeTimeCorrect == true - && isDateOrderCorrect == true && descriptionLenghtOK() == true) { + if (isAllInformationReady && isDateOrderCorrect && descriptionLenghtOK() == true) { // everything is ok, proceed Lecture.lecture.setNewName(textFieldLaborname.getText().trim()); Lecture.lecture.setDesc(description.getText().trim()); -- cgit v1.2.3-55-g7522