FX.js is a smarter alternative to FXML and the JavaFX API.
It has the following facilities:
3) APIs that enable Java (and other JVM language) programs to use these facilities.
The FXJS interpreter is small enough (< 50 Kb) to embed in other programs. For more information see the links under "Project Links" in the left margin.