How do you double buffer in java for a game?
问题 So in the game I\'m working on, I have a marble follow the mouse, but when it does this the screen flickers. The background includes two jpegs and 9 rectangles. How would I go about double buffering this? Here is the code for the main window. /** * Write a description of class Window here. * * @author (your name) * @version (a version number or a date) */ public class Window extends JApplet implements MouseMotionListener { private BufferedImage image; private BufferedImage side; private int