From 2784cd67fadfb0a00f6cca8e0a39057b8ca17158 Mon Sep 17 00:00:00 2001 From: Andrin Fassbind Date: Thu, 12 May 2022 19:44:45 +0200 Subject: [PATCH] make last file visible for user in footer --- .../main/java/ch/zhaw/projekt2/turnierverwaltung/Factory.java | 2 ++ .../zhaw/projekt2/turnierverwaltung/TournamentDecorator.java | 3 +++ 2 files changed, 5 insertions(+) diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Factory.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Factory.java index 9f1a856..3affbd6 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Factory.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/Factory.java @@ -4,6 +4,7 @@ import ch.zhaw.projekt2.turnierverwaltung.main.gameScheduleView.GameController; import ch.zhaw.projekt2.turnierverwaltung.main.gameScheduleView.GameDecorator; import ch.zhaw.projekt2.turnierverwaltung.main.tournamentList.TournamentListController; import javafx.fxml.FXMLLoader; +import javafx.geometry.Insets; import javafx.scene.control.Label; import javafx.scene.control.TextArea; import javafx.scene.layout.*; @@ -111,6 +112,7 @@ public class Factory { resetFooter(pane,false); label.setTextFill(Color.GREEN); label.setFont(new Font(10)); + label.setPadding(new Insets(0,10,0,0)); innerVbox.getChildren().add(label); } diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/TournamentDecorator.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/TournamentDecorator.java index 6da0b55..28d6bac 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/TournamentDecorator.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/TournamentDecorator.java @@ -4,6 +4,7 @@ import javafx.application.Platform; import java.io.IOException; import java.util.ArrayList; +import java.util.Date; import java.util.List; import java.util.concurrent.ExecutorService; import java.util.concurrent.Executors; @@ -58,6 +59,8 @@ public class TournamentDecorator implements IsObservable{ public void saveTournament(){ executorService.execute(new saveTask()); + factoryDecorator.clearMessage(false); + factoryDecorator.printMessageToFooter("Zuletzt gespeichert: " + new Date().toString(),false); }