Am new to Javafx and wondering how to populate a tableview from a 2-dimensional array of String:
String[][] staffArray = (String[][]) connection.getAll(\
Best practices for TableView
in JavaFX are to use Objects with Properties and bind them to Columns.
I would suggest moving on or converting your 2 dimensional array to a more Strongly Typed model.
What you are aiming for is to have a ObservableList
that you can then assign to your TableView
.
Oracle has a really good introduction to the TableView that show cases the recommendations I suggested.