I want to populate table view in javafx by using array list .I do not want to use any model .i want to make array list as my source of data for populating tableview .
Code: List<Double> doubles = new ArrayList<Double>(); doubles.add(12.12d); ObservableList<Double> names = FXCollections.observableArrayList(doubles); TableView table_view = new TableView<>(names); firstDataColumn.setCellFactory(?????);/// here the problem comes what is the cell factory in case of arraylist
You must use a
ObservableList as your datasource and to achieve this when you have a
List you can use: