r/JavaFX • • 14d ago

Discussion JavaFX application by a back-end developer

https://andrej-urvantsev.statichost.page/posts/2026-11-17-javafx/
28 Upvotes

10 comments sorted by

View all comments

4

u/OddEstimate1627 14d ago

DI in JavaFX is actually very common. Adam Bien was advocating for FXML + DI via Afterburner.fx back in 2014, and a lot of developers used it and developed it further (e.g. FxmlKit).

FXML itself is also just DI on the UI layer, except that you use the FXML annotation and override initialize() instead of Inject and PostConstruct.