Animated component adding-delete in a VBox

2019-08-30 05:36发布

问题:

Is there a way to make the elements of a VBox smoothly move to their new positions when a new element is inserted or removed?

I actually need only to make them move smoothly when I remove an element. Thank you for your answers!

回答1:

Not without extending VBox and adding your own code to do so by overriding the addChild and removeChild functions.