Using threads for animation in a non-main class.

Printable View