Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

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
));
Source by medium.com #
 
PREVIOUS NEXT
Tagged: #javafx #tableview #add #data
ADD COMMENT
Topic
Name
8+7 =