Thank you. The answer mentioned in this post is working in my case too.
I am using postgres
as database.
creating a table view
@FXML private TableView<AccountMaster> detailstable;
I am getting the details from DB and storing it in a generic list.
List<Student> list = DatabaseClient.getInstance().studentDetailsSearch(id,name);
creating observable list of generic type and then setting the list values in observable list.
ObservableList<AccountMaster> searchDetailsList = FXCollections.observableArrayList(list );
setting it in table view
detailstable.getItems().addAll(searchDetailsList);
With this we can populate values from database into ObservableList
in javafx