I am gone through some of code java applet and animation, i write the following code :
import java.applet.*; import java.awt.*; /*
Yes it will flicker. You will have to solve this problem using the concept of DoubleBuffering. It means that the image to be drawn is already buffered before its drawn on screen. It will remove the flickering effect.