简体   繁体   中英

Add new row in GridPane in JavaFx

I have an object where I store my data about file.

How can I add a new line with already filled fields (checkbox, combobox...)

测试GridPane

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM