Should we use FXML in JavaFX custom controls or not?
It seems wired to ask this, I would think that using FXML to write our custom components is the obviously the right way to go. But as we can see from ControlsFX, JFXextras and even the book 'Mastering JavaFX8 controls do not use or mention the use of FXML in custom controls. Despite that, the official documentation to say to go on that route, and create JavaFX controls via FXML. What is the more correct way and why ? There are two kinds of custom controls in JavaFX: fx:root based custom controls : These custom controls are styleable (support CSS), but are not skinnable. If you're an