changed Alignment of VBox to center in TournamentSchedule
This commit is contained in:
parent
afab6dbee3
commit
38d1708a25
|
@ -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<GameDecorator> 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);
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue