@teckeon It is red because you haven't told intellij what controller it should look in. You can configure the fx:controller attribute, but if you do that you also have to add the
hasControllerAttribute = true
paramter to the
fxml()
delegate in the View.