JavaFX: how to let one FXML include another
How to let one fxml include another, e.g. let every scene has a "header" ? Note you have to set "fx:id=…" There must be a controller for the included fxml file. Let’s call it HeaderController public class HeaderController { @FXML private Text errorText; … Include the HeaderController in your controller public class LoginController { //the …