_vBox = new VBox(this);_vBox.setSize(stage.stageWidth, stage.stageHeight);_vBox.alignment = VBox.CENTER;_hBox = new HBox(_vBox);_hBox.setSize(stage.stageWidth, stage.stageHeight);_hBox.alignment = HBox.MIDDLE;_progressBar = new ProgressBar(_hBoy);
The width of a vbox is the widest child. Same with height of hbox. Setting it to the stage size has no effect.