Answer the question
In order to leave comments, you need to log in
Answer the question
In order to leave comments, you need to log in
You can get it halfway through creating the window. Not from the Stage itself, but from the FXMLLoader. And there you can already get to the elements.
FXMLLoader loader = new FXMLLoader(getClass().getResource("MyGui.fxml"));
Parent root = (Parent)loader.load();
MyController controller = (MyController)loader.getController();
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question