I am loading scenes from FXML and store the scenes in a Deque for changing menus. The FXML files are linked to controller classes.
I want to know is there any way to access controller class (Actually controller instance) of scene from scene?
For example is there any way to do something like this:
Scene scene = scenes.getLast();
scene.getController(); //There is no such method by default
(scenes is a Deque that stores Scene Objects)
userDataproperty when loading which would allow you to store this data in a more convenient data structure. - fabian