How to get the controller of an included FXML?

不羁岁月 提交于 2020-01-05 07:11:30
问题 I have a simple two tab application build around JavaFXML and scenebuilder. The tabs do nothing at present because I cannot get past a nullpointer exception when trying to load them. The java and fxml files are arranged in a Netbeans project like this: Main Application: The application main class MainApp.java sets the scene and is declared as follows: package tabpane; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import javafx.application