Added an animation to DialogPanel. For that the method translate(x, y)
was necessary in Component.