Need to wait for the animation to complete
I'm animating a JDialog popping up when the User clicks with the TimingFramework. Because the JDialog must be modal and I wasn't able to get the animation running with a modal Dialog, I use a JWindow as placeholder instead. The placeholder is animated and when the animation finished, the actual, modal Dialog ist set visible.
But the problem is: Animator has no method that blocks until the animation is completed. So how do I wait until the JDialog has been animated completely?