JavaFX: no tableview content displayed
•
Java
I have created a JavaFX application, I built the native package using ant, and I confused jar with proguard-4.8
In case of confusion, whether any additional settings or code changes need to be mapped to tableview in the class for data association
Solution
I'm going my own way
col.setCellValueFactory(new Callback<TableColumn.CellDataFeatures<Test,String>,ObservableValue<String>>() { public ObservableValue<String> call(TableColumn.CellDataFeatures<Test,String> t) { // t.getValue() returns the Test instance for a particular TableView row return t.getValue().testproperty(); // or return new SimpleStringProperty(t.getValue().getMessage()); } });
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码