[ACCEPTED]-How to make VBox fill the size of its parent-javafx-2
You can achieve the same functionality without 1 using bind, using only BorderPane instead of Group
final BorderPane root = new BorderPane(); // construct your VBox root.setCenter(vbox);
You are making a common mistake.
It's not 3 necessary to create a Group as the root, just 2 directly use VBox as the root and add it 1 to the scene.
final Scene scene = new Scene(c, 1000, 800, Color.BLACK);
More Related questions