Animate splitpane divider

Viewed 985

I have a horizontal split pane, and i would like to on button click, change divider position, so that i create sort of "slide" animation.

divider would start at 0 (complete left) and on my click it would open till 0.2, when i click again, it would go back to 0;

now i achived this, i just use

spane.setdividerPositions(0.2); 

and divider position changes, but i cant manage to do this slowly i would really like that slide feeling when changing divider position.

Could anyone help me ? all examples i found on google, show some DoubleTransition, but that does not exist anymore in java 8, at least i dont have import for that.

1 Answers
Related