diff --git a/src/main/java/edu/ntnu/stud/cardgame/Main.java b/src/main/java/edu/ntnu/stud/cardgame/Main.java index 903e423a49d20586b6aa1bf022c852259c9092bd..509ecc52ceeac21f946b6702a50614bf35aeb547 100644 --- a/src/main/java/edu/ntnu/stud/cardgame/Main.java +++ b/src/main/java/edu/ntnu/stud/cardgame/Main.java @@ -57,9 +57,12 @@ public class Main extends Application { bottomHalf.getChildren().add(heartsText); bottomHalf.getChildren().add(queenSpadesText); bottomHalf.getChildren().add(fiveFlushText); + HBox container = new HBox(); + container.getChildren().add(bottomHalf); + container.setAlignment(Pos.CENTER); root.getChildren().add(topHalf); - root.getChildren().add(bottomHalf); + root.getChildren().add(container); root.setFillWidth(true); stage.setScene(new Scene(root)); stage.setMaximized(true);