I have one fxml file controlled by one controller. I want to separate the controller into multiple parts as if placed in one controller makes a long code. Unfortunately, fx:controller can only be placed in the root. Are there any suggestions for me how to separate the controller?
I recommend to create custom controls - use several smaller FXML files rather than one big FXML file.
Here is the tutorial:
You can add an fxml file as a node into another fxml , both with diferent controllers with include option in scene builder