Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Setting TableView generic type from FXML?

The TableView class of JavaFX 2.2 has a generic type S, I am wondering how one can set this from FXML?

like image 265
stefan.at.wpf Avatar asked Apr 15 '13 08:04

stefan.at.wpf


1 Answers

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.

like image 147
Antonio J. Avatar answered Sep 22 '22 01:09

Antonio J.