Skip to main content

Need to wait for the animation to complete

1 reply [Last post]
tobiasdemuth
Offline
Joined: 2007-01-19

Hi there,

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?

kind regards
Tobias

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
tobiasdemuth
Offline
Joined: 2007-01-19

I'm adding a new TimingTarget to the animator that does the stuff, that must be done after the animation is finished, in it's end()-method. Works pretty well - topic closed.

kind regards
Tobias