As the code above,I expect to see 5 animations playing on the applet.But actually, these animations don't play perfectly.I mean,there are many refresh between each frames of the animation.
Could anyone help to improve the code so that the animation can play without the explict refresh?(I have already applyed offScreenGraphic to reduce the possible refreshment,but it doesn't work )