r/JavaFX • u/lazystone • 1d ago
Discussion JavaFX application by a back-end developer
https://andrej-urvantsev.statichost.page/posts/2026-11-17-javafx/
23
Upvotes
r/JavaFX • u/lazystone • 1d ago
9
u/sombriks 1d ago
Nice article, thanks for sharting!
In my own experiments i got into reactive/signal-based interfaces and got recommended here this article: https://www.pragmaticcoding.ca/javafx/techniques/reactive-javafx/
Note that "reactive programming" in the context of modern frontend does not relate to that collective hallucination that backend java suffered back in Vert.x days.
4
u/OddEstimate1627 1d 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.
1
u/Wootery 18h ago
Can't say I'm sold on the DI framework but at least it's compile-time.
Formatting gripe: the way the
->operator renders as a single character. This makes it look as if a unicode arrow character has mistakenly been used. Code should be shown using a monospace typeface with no cute formatting tricks.