When I run the following code in intellij with java 8 I get an error. Please Help. The fxml is generated using the scene builder, I think the button Dagrooster isn\'t linked
The error says it, the FXML is missing the fx:controller declaration. Add the controller declaration to BorderPane declaration as shown :
fx:controller
BorderPane
... ...
To know how to set controller class via SceneBuilder, you can have a look at this question.