Java Applet Thread Animation

前端 未结 2 764
南旧
南旧 2021-01-15 03:12

I am gone through some of code java applet and animation, i write the following code :

import java.applet.*;
import java.awt.*;

/*

        
      
      
      
2条回答
  •  醉话见心
    2021-01-15 03:24

    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.

提交回复
热议问题