PDA

Click to See Complete Forum and Search --> : Offscreen buffering of Display


daveyboy
Mar 27th, 2002, 06:06 AM
Does anyone know how to disable java from 'off-screen buffering' of the display, so that all the work for the display occurs on screen, so that when using swing I don't have a frozen display until a section of code is done, then a refresh...

I've had progs that before now have been using swing, and have started, processed, not changed, then refreshed to the final stage....

Any ideas?

nabeels786
Mar 27th, 2002, 08:32 AM
i have the same prob.

overload the paint() function

i still get flickering though

daveyboy
Mar 27th, 2002, 01:40 PM
Do you have an example of an overriden paint() method???

I've been told to try this before, but haven't had much success........

Dillinger4
Mar 28th, 2002, 12:24 AM
Bolth reside in the JComponent class.

public boolean isDoubleBuffered();
public void setDoubleBuffered(boolean b)


I don't have a frozen display until a section of code is done
then a refresh...


Im not sure that turning double buffering off would help though.It takes longer for a component to render it's individual parts on screen than it does for a rectangular area-copy to take place. Area copies are always faster because they are performed by the operating system or even the graphics processor. At this level they are commonly refered to as "bit-block transfers" or BitBLT's.

Dillinger4
Mar 28th, 2002, 12:31 AM
This thread might help of you guys want to check it out.

http://www.vbforums.com/showthread.php?s=&threadid=120563&highlight=Flickering