Have multiple FXML files (created in SceneBuilder), but only one controller. Does each scene load it’s own copy of the controller?

Your controller file is a Java source file which gets compiled to a single Java class from which many Java object instances may be created. At runtime the default fxml loader controller factory implementation will create a new controller instance (i.e. a new object), every time you invoke the fxml loader’s load method. Even if … Read more