The TableView
class of JavaFX 2.2 has a generic type S
, I am wondering how one can set this from FXML?
The same happens to a ListView or ComboBox. But I think that in the FXML file you are defining the controls and you are defining a generic ListView or a ComboBox or TableView or whatever. No matter what they are going to show.
So to me it makes more sense to set the generic type in the JavaFX controller class, instead of in the FXML file.
Hope it helps.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With