Caused by: java.lang.IllegalAccessError: class com.sun.javafx.fxml.FXMLLoaderHelper (in unnamed module @0x6a15cd04) cannot access class com.sun.javafx.util.Utils (in module javafx.graphics) because module javafx.graphics does not export com.sun.javafx.util to unnamed module @0x6a15cd04
Knute Snortum wrote:I don't understand the problem. You would load the controller just like any other FXML.
What do you mean that you can't generate a controller when building FXML in IntelliJ?
In IntelliJ I go to file new fxml file - give a name and a fxml file will be created ... and now ... what have I to do next to get a controller file and connect it to the new window/fxml file
When I start a project the main controller file already exists - for the second window ... just copy the main controller file and rename it? ... is there a place where I have to "load" the new controller ?
Edit: found the connection in fxml file with fx:controller="test.controller"