a scriptable XML-based language that provides the structure for building a JavaFX user interface separate from the application logic of your code.
FXML was introduced with the release of JavaFX 2.0 in 2011 by Oracle. It's rich XML-based language to declare JavaFX UI in structured format.
Using FXML allows to separate logic from presentation which is very welcome in modern MVC world.
In addition to straightforward UI declaration FXML allows:
- using
Controller
for seamless mapping of the XML entities to the JavaFX objects. - referring property files (e.g. for i18n support)
- introducing variables
- setup complex object by referring static method calls
- work with collections
- even using JavaScript or other scripting languages
A good start to learn more about the format would be the Oracle article JavaFX: Mastering FXML.