This is my code:
for (int i=1; i<= columnCount; i++) {
HBox h = new HBox();
Label column = new Label(rsmd.getColumnName(i));
TextField entry = new TextField();
h.getChildren().addAll(column, entry);
dialogVbox.getChildren().add(h);
}
I need to run this in a for loop because the number of rows created is dependent on the columns retrieved from a database table. After this when the user clicks a button I need to retrieve the new values they have entered in the "entry" TextFields. Is there any way to do this? I'm assuming I may have to create some dynamic list outside of the loop and populate it, but I'm not sure how to do that. Any help would be appreciated!