I'm making a game as my project in school. I'm having a problem regarding double buffering, im trying to draw an image (drawImage(,,,,)) into the double buffered image, I can't seem to make it work help please =D

public void render() {
    		doubleBufferImage = createImage(PANEL_WIDTH,PANEL_HEIGHT);	// Set Size	
    		if(doubleBufferImage == null) {							// checks the buffer again
				System.out.println("doubleBufferedImage is null");
			doubleBufferG = doubleBufferImage.getGraphics();
		doubleBufferG.fillRect (0, 0, PANEL_WIDTH, PANEL_HEIGHT);
// display FPS
		doubleBufferG.drawString("FPS:" + FPS , 1 , 10);

		//doubleBufferG.drawImage(image1,400,400,this);           // THIS WOULD NOT WORK

You still have to render that doubleBufferImage to your component graphics context in your paintComponent(Graphics) method.

This question has already been answered. Start a new discussion instead.