Put the code to make a SwingAnimation from an Animation into the SwingAnimation class