I'm writing a version of Donkey Kong in java. I'm using swing, and am trying to get the event-driven animation to work. When I use the direction keys, my character moves, but leaves a trail of all the past frames behind it. How do I fix this? Thanks in advance.