diff options
| author | Tobias Spitzer | 2014-08-26 09:36:49 +0200 |
|---|---|---|
| committer | Tobias Spitzer | 2014-08-26 09:36:49 +0200 |
| commit | bbcf6036c13fb32572e2e388701c948d0003356b (patch) | |
| tree | 3d2055aae33771823fdbb2d49318c10fb4224acc /Dozentenmodul/src/gui | |
| parent | Löschen der XML funktioniert nun, sowie das bearbeiten der XML ohne das eine ... (diff) | |
| download | tutor-module-bbcf6036c13fb32572e2e388701c948d0003356b.tar.gz tutor-module-bbcf6036c13fb32572e2e388701c948d0003356b.tar.xz tutor-module-bbcf6036c13fb32572e2e388701c948d0003356b.zip | |
Start und Enddatum der Lectures sind nun im 24H Format verfügbar
Diffstat (limited to 'Dozentenmodul/src/gui')
5 files changed, 17 insertions, 15 deletions
diff --git a/Dozentenmodul/src/gui/lecture/CreateLectureAllgemein_GUI.java b/Dozentenmodul/src/gui/lecture/CreateLectureAllgemein_GUI.java index 54e6d8c8..9c30cce7 100644 --- a/Dozentenmodul/src/gui/lecture/CreateLectureAllgemein_GUI.java +++ b/Dozentenmodul/src/gui/lecture/CreateLectureAllgemein_GUI.java @@ -282,7 +282,7 @@ public class CreateLectureAllgemein_GUI extends JFrame { // already defined from last visit on this page dateChooserend.setDate(Lecture.lecture.getEnddate()); } - dateChooserend.setDateFormatString("yyyy-MM-dd hh:mm:ss"); + dateChooserend.setDateFormatString("yyyy-MM-dd HH:mm:ss"); dateChooserend.setBounds(404, 188, 143, 20); panel_2.add(dateChooserend); @@ -298,7 +298,7 @@ public class CreateLectureAllgemein_GUI extends JFrame { // already defined from last visit on this page dateChooserstart.setDate(Lecture.lecture.getStartdate()); } - dateChooserstart.setDateFormatString("yyyy-MM-dd hh:mm:ss"); + dateChooserstart.setDateFormatString("yyyy-MM-dd HH:mm:ss"); dateChooserstart.setBounds(226, 188, 143, 20); panel_2.add(dateChooserstart); diff --git a/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java b/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java index 6118ae1e..a388d30d 100644 --- a/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java +++ b/Dozentenmodul/src/gui/lecture/CreateLectureLink_GUI.java @@ -553,7 +553,7 @@ public class CreateLectureLink_GUI extends JFrame { .toString(); try { DateFormat formatter = new SimpleDateFormat( - "yyyy-MM-dd hh:mm:ss"); + "yyyy-MM-dd HH:mm:ss"); client.writeLecturedata( Lecture.lecture.getName(), Lecture.lecture.getShortDesc(), diff --git a/Dozentenmodul/src/gui/lecture/DeleteLecture_GUI.java b/Dozentenmodul/src/gui/lecture/DeleteLecture_GUI.java index ac3317a8..ed6816ed 100644 --- a/Dozentenmodul/src/gui/lecture/DeleteLecture_GUI.java +++ b/Dozentenmodul/src/gui/lecture/DeleteLecture_GUI.java @@ -646,8 +646,8 @@ public class DeleteLecture_GUI extends JFrame { // Hole eine Liste der Images lectures = client.getLectureList(); Iterator<server.Lecture> i = lectures.iterator(); - SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); - SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy hh:mm:ss"); + SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy HH:mm:ss"); int x = 0; while (i.hasNext()) { @@ -676,8 +676,8 @@ public class DeleteLecture_GUI extends JFrame { } public void writeLectureData(String id) throws TException, ParseException{ - SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); - SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy hh:mm:ss"); + SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy HH:mm:ss"); Map<String,String> res=client.getLectureData(id); labelName.setText(res.get("name")); labelAktiv.setText(res.get("isActive")); diff --git a/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java b/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java index 5a89ea48..ff35ad43 100644 --- a/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java +++ b/Dozentenmodul/src/gui/lecture/EditLectureSearch_GUI.java @@ -760,12 +760,13 @@ public class EditLectureSearch_GUI extends JFrame { // Hole eine Liste der Images lectures = client.getLectureList(); Iterator<server.Lecture> i = lectures.iterator(); - SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); - SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy hh:mm:ss"); + SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy HH:mm:ss"); int x = 0; while (i.hasNext()) { // erzeuge Objekte fuer die Tabelle + Object[] obj = { lectures.get(x).lecturename, lectures.get(x).desc, @@ -776,6 +777,7 @@ public class EditLectureSearch_GUI extends JFrame { lectures.get(x).imagename," " ,lectures.get(x).id }; // Fuege diese Objekte der Tabelle hinzu model.addRow(obj); + x++; i.next(); @@ -790,8 +792,8 @@ public class EditLectureSearch_GUI extends JFrame { } public void writeLectureData(String id) throws TException, ParseException{ - SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss"); - SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy hh:mm:ss"); + SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss"); + SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy HH:mm:ss"); Map<String,String> res=client.getLectureData(id); labelName.setText(res.get("name")); labelAktiv.setText(res.get("isActive")); diff --git a/Dozentenmodul/src/gui/lecture/SearchLecture_GUI.java b/Dozentenmodul/src/gui/lecture/SearchLecture_GUI.java index 707534f4..bbe50b3f 100644 --- a/Dozentenmodul/src/gui/lecture/SearchLecture_GUI.java +++ b/Dozentenmodul/src/gui/lecture/SearchLecture_GUI.java @@ -569,8 +569,8 @@ public class SearchLecture_GUI extends JFrame { // Hole eine Liste der Images
lectures = client.getLectureList();
Iterator<server.Lecture> i = lectures.iterator();
- SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
- SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");
+ SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy HH:mm:ss");
int x = 0;
while (i.hasNext()) {
@@ -599,8 +599,8 @@ public class SearchLecture_GUI extends JFrame { }
public void writeLectureData(String id) throws TException, ParseException{
- SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd hh:mm:ss");
- SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy hh:mm:ss");
+ SimpleDateFormat in=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
+ SimpleDateFormat out=new SimpleDateFormat("dd.MM.yyyy HH:mm:ss");
Map<String,String> res=client.getLectureData(id);
labelName.setText(res.get("name"));
labelAktiv.setText(res.get("isActive"));
|
