r/JavaFX • • 1d ago

Discussion JavaFX application by a back-end developer

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

8 comments sorted by

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.

5

u/Wootery 18h ago

thanks for sharting

(¬_¬)

3

u/lazystone 17h ago

/u/sombriks please don't fix this. It's my favorite typo now!

1

u/sombriks 12h ago

hahaha, i have a secret, english is not my main language and i am legally blind!

But i hope that the original message lands right!

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.

2

u/lazystone 17h ago

That's exactly how it looks like in my IDE(I love font ligatures). Matter of taste.

2

u/PartOfTheBotnet 14h ago

DI is something that you come to love after you work on an application that really benefits from it.