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