[ACCEPTED]-How to make VBox fill the size of its parent-javafx-2
Accepted answer
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);
Source:
stackoverflow.com
More Related questions
Cookie Warning
We use cookies to improve the performance of the site. By staying on our site, you agree to the terms of use of cookies.