Sequence of animations

Hi all, what is the recommended method for producing a sequence of animations using the Desktop Component Animator class (i.e. working through a list of animations that each start after the previous animation in the list has completed)?

I am calling the animator from the message thread, so something like this just causes the application to hang.

while(Desktop::getInstance().getAnimator().isAnimating()) { //Do nothing }

It was never really designed for sequential animations, but I guess you could use a ChangeListener to find out when an animation stops and then start a new one.

I wrapped that idea up into a sequentialAnimation class and it works perfectly. I just wanted to check that I wasn’t reinventing the wheel first. Thanks.