GridPane gridPane = new GridPane();
TextField textField = new TextField("Text Field");
gridPane.add(textField, 1, 1);
Label label = new Label("Label");
gridPane.add(label, 0, 1);
Similarly you can add any field into grid pane with its row and column index with the values too.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.