Generics in FXML?
greg.x.brown at oracle.com
Tue Aug 7 11:02:56 PDT 2012
> ListView, TableView, ComboBox etc are controls with generic type parameters. What is the recommended way to define these in FXML? In other words, how can I specify generic type parameters here?
You can't. FXML is evaluated at runtime, after the generics have been erased.
You can just use these classes in FXML as if they were non-generics. However, if you map them into a controller, you can use the generic equivalents.
More information about the openjfx-dev