how to put a gridpain in a vbox

The solution for “how to put a gridpain in a vbox” can be found here. The following code will assist you in solving the problem.

GridPane grid = new GridPane();
grid.add(label,0,0);
grid.add(textField,1,0);

VBox box = new VBox();
box.getChildren().addAll(txt,grid);
root.getChildren().add(box);*/

Thank you for using DeclareCode; We hope you were able to resolve the issue.

More questions on [categories-list]

Similar Posts