From 38d1708a2574b7325b8207b5342c3e7b4fef224f Mon Sep 17 00:00:00 2001 From: schrom01 Date: Sun, 8 May 2022 17:28:41 +0200 Subject: [PATCH] changed Alignment of VBox to center in TournamentSchedule --- .../ch/zhaw/projekt2/turnierverwaltung/FactoryDecorator.java | 2 ++ .../ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.java | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FactoryDecorator.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FactoryDecorator.java index 81672e7..f6d29cb 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FactoryDecorator.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/FactoryDecorator.java @@ -2,6 +2,7 @@ package ch.zhaw.projekt2.turnierverwaltung; import ch.zhaw.projekt2.turnierverwaltung.main.gameScheduleView.GameController; import ch.zhaw.projekt2.turnierverwaltung.main.gameScheduleView.GameDecorator; +import javafx.geometry.Pos; import javafx.scene.layout.BorderPane; import javafx.scene.layout.HBox; import javafx.scene.layout.Pane; @@ -85,6 +86,7 @@ public class FactoryDecorator implements IsObservable{ for (int i = 0; i < gameList.size(); i++) { List newGameDecorators = new ArrayList<>(); VBox vBox = new VBox(); + vBox.setAlignment(Pos.CENTER); for (int j = 0; j < gameList.get(i).size(); j++) { GameDecorator gameDecorator = new GameDecorator(gameList.get(i).get(j)); newGameDecorators.add(gameDecorator); diff --git a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.java b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.java index f970bee..9ff754e 100644 --- a/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.java +++ b/app/src/main/java/ch/zhaw/projekt2/turnierverwaltung/main/MainWindow.java @@ -31,7 +31,7 @@ public class MainWindow extends Application { Scene scene = new Scene(pane); primaryStage.setScene(scene); primaryStage.setMaximized(true); - primaryStage.setResizable(false); + primaryStage.setResizable(true); primaryStage.setFullScreen(false); primaryStage.show(); }