Removed flicker from JApplet animation