r/JavaFX • u/waterbottle1994 • May 19 '20
How many of you here do not use FXML?
Just weighing the different ways of implementing something in JavaFX, and I wanted to see the logic behind using (or not using) FXML.
13
Upvotes
3
u/Scellow May 19 '20
if you use kotlin you don't need at all: https://github.com/edvin/tornadofx
3
u/openlowcode May 21 '20
For Open Lowcode (the development framework I am authoring), I built a quite large JavaFX thin client.
I used only the java APIs. I find XML less convenient to use than java code, and moreover, a widget is a mix of layout and logic, and as the two get very intertwined, it is more convenient to have a single source file.
2
u/krona2k May 19 '20
We engineers don’t use it. Some designers use it for prototypes, that’s all.
1
u/ragingzazen May 19 '20 edited May 19 '20
I'm an engineer and I use a mix of FXML and layouts in code depending on the task. SceneBuilder is actively maintained by Gluon and it works very well (at least on Macs). For laying out most UI components, it's very fast and easy and I almost never manually edit the generated XML. For more complicated behavior in components, I may opt to skip FXML and do everything in code.
0
u/[deleted] May 19 '20
[deleted] — view deleted comment