If you feel you need to reference the label/UI element, in most situations there is a better way. Not sure I caught what you wanted to do. Do you have a Boolean property that should be bound to the visible property of each label or the other way around?
v
ValV
09/13/2018, 8:49 AM
I used FXML in previous project, but now I'd like to try that builders which are suggested, when we start a new TornadoFX project. In fxml I used
fxid()
to manipulate GUI elements. With builders they seem anonymous
ValV
09/13/2018, 8:50 AM
What are the better ways to manipulate 'em e.g. on event?
e
edvin
09/14/2018, 9:33 AM
Using the EventBus is a far better option than tight coupling between UI elements IMO 🙂
👍 1
v
ValV
09/14/2018, 7:35 PM
I did not know about EventBus. Now am using it. Awesome trick. Thanks for the clue!