Limitations of FXML

FXML can describe only static user interfaces; for any UI changes, you'll need to use Java code or prepare a separate FXML.

Also, debugging FXML loading is tricky as it works through reflection and you need to be very careful with the names of @FXML variables.

For the same reason, refactoring of the code that uses FXML may miss text constants inside FXML. Some IDEs (for example, the latest versions of NetBeans) may help with that.

Get Mastering JavaFX 10 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.