chestnut
chestnut

Reputation: 21

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...)

Testing GridPane

Upvotes: 2

Views: 2586

Answers (1)

Venkat Prasanna
Venkat Prasanna

Reputation: 732

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.

Upvotes: 0

Related Questions