Manual swap buffers ...

My message didn’t complete. First time posting. Sorry. Here goes again.

I realize that using GLEventListener’s display() only swaps drawing buffer to display once. Is it possible to refresh the buffer manually?

public void display(GLDrawable drawable) {

GL gl = drawable.getGL();   
line(gl, x0, y0, xn, yn);  

// hope to make the above line appear on display
// swap buffer here.

// wait for a while and draw another line
antialiasedLine(gl, x0, y0, xn, yn);
}

Thanks,
Jim Chen

This is very old problem, you can look for more info and patches in the “Vote time: RFE - Developer controlled swap buffer” thread in this forum (http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=jogl;action=display;num=1063385846).

Yuri