Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ObservableList<ArrayList<Double> > dataObs;
- dataObs = FXCollections.observableArrayList();
- // lenPet, lenSet... are TableColumn and tableDataset is the TableView
- lenPet.setCellValueFactory(param -> new ReadOnlyObjectWrapper<Double>(param.getValue().get(0))); lenSet.setCellValueFactory(param -> new ReadOnlyObjectWrapper<Double>(param.getValue().get(1)));
- larPet.setCellValueFactory(param -> new ReadOnlyObjectWrapper<Double>(param.getValue().get(2)));
- larSet.setCellValueFactory(param -> new ReadOnlyObjectWrapper<Double>(param.getValue().get(3)));
- for (int i=0;i<dataset.getnRecord(); i++)
- {
- dataObs.add(dataset.getRecord(i));
- }
- tableDataset.setItems(dataObs);
Advertisement
Add Comment
Please, Sign In to add comment