How do you guys do when using collections of FX co...
# tornadofx
m
How do you guys do when using collections of FX controls, like ControlsFX, with TornadoFX? Do you write all the builders or just go with
apply
blocks and
add
?
s
well, in that specific case there is this, https://github.com/edvin/tornadofx-controlsfx I don't have any idea how maintained it is now but it used to work.
m
Thanks, Stephen. There are few merges of pull requests from 2018 and in April 2019. Since I'm thinking of dropping TornadoFX from my project, I'll try and see how it actually is to just use JavaFX directly in Kotlin. Thanks for the pointer, though, I didn't know it existed.
b
@melatonina I just tried to start a new project on usually JavaFX, well, I don't want to write code anymore, since there are no convenient builders. It's okay to do UI with FXML, but the kotlin controller doesn't look pretty. There may also be problems with creating forms, there are libraries, but I didn't really like them. Same thing with validation
in the end I decided to add tornadofx
Do you write all the builders or just go with 
apply
 blocks and 
add
?
using custom builder + https://github.com/edvin/tornadofx/blob/master/src/main/java/tornadofx/FX.kt#L474
m
Thanks for sharing your experience, Bogdan.
Yes, I use opcr in few builder for my custom controls.