So I’m using a Boolean by Delegates.observable to automatically refresh a stackpane containing imageviews by just inverting the boolean whenever I want the pane refreshed.
This worked flawlessy until I switched from having root = borderpane() to root = tabpane() because when I trigger the observable now, every image that is (correctly) added to the stackpane it belongs to, also gets added as a new, empty tab in the tabpane. This way the tab bar gets spammed quickly and this does not happen when I add the images to the stackpane in any other way.
I started using Delegates after searching for a way to refresh the stackpane on change of another var but have little insight in their inner workings. Can someone explain why this happens and how to prevent it?