Closed kammoh closed 8 years ago
You can't refer to the original class because it is transformed. What you can do is to extract the interface you'd like to use to a trait, and use getController
with that, like in the example: https://github.com/vigoo/scalafxml/blob/master/demo/src/main/scala/scalafxml/demo/getcontroller/GetControllerDemo.scala
Thank's Daniel! I totally overlooked the macro magic which was going on there! Great work by the way!
I'm trying to access the controller instance of a loaded FXML in scala but haven't found a way to do it. My code is sth like this:
in the fxml file I have:
I get the following exception: