Answers for "javafx tableview add data"

2

javafx tableview add data

//make sure the property value factory should be exactly same as the e.g getStudentId from your model class
studentId.setCellValueFactory(new PropertyValueFactory<>("StudentId"));
firstName.setCellValueFactory(new PropertyValueFactory<>("FirstName"));
lastName.setCellValueFactory(new PropertyValueFactory<>("LastName"));
//add your data to the table here.
tbData.setItems(FXCollections.observableArrayList(
	studentList
));
Posted by: Guest on March-02-2022

Code answers related to "javafx tableview add data"

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language