As per my thinking When the below two lines are executed by Compiler in javaFX, First line just set the location of ABC.fxml file. And in second line when execute loader.load() that time Compiler make one object of the Controller of ABC.fxml file and which is ABCcontroller.java. and call it.
loader.setLocation(MyApplicationClass.class.getResource("/demo/view/ABC.fxml"));
rootDisplay = (BorderPane) loader.load();
During this time(at loader.load()) I want to pass the stage value from my current class file(mainclass.java) to the this object of ABCcontroller.class. Because i need this value further.
I have seen like
loader.load(URL Location, ResourceBundle resources,.....)
Can we pass the value of stage by giving the Parameter. I do not not how to call this or what is the use of this parameters.
Please suggest me how to implement in this way or another idea to do this same thing.