Results 1 to 5 of 5

Thread: Offscreen buffering of Display

  1. #1

    Thread Starter
    Member daveyboy's Avatar
    Join Date
    Feb 2002
    Location
    Aberystwyth, UK
    Posts
    33

    Offscreen buffering of Display

    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?


    Infinity isn't large it's just incomprehensible

  2. #2
    Fanatic Member nabeels786's Avatar
    Join Date
    Jul 2001
    Location
    New York
    Posts
    919
    i have the same prob.

    overload the paint() function

    i still get flickering though
    Visit www.fragblast.com
    Gaming, forums, and a online RPG/Battle system




    (__Flagg) DOT NET? is this a Hindi Dating service?

  3. #3

    Thread Starter
    Member daveyboy's Avatar
    Join Date
    Feb 2002
    Location
    Aberystwyth, UK
    Posts
    33
    Do you have an example of an overriden paint() method???

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


    Infinity isn't large it's just incomprehensible

  4. #4
    Dazed Member
    Join Date
    Oct 1999
    Location
    Ridgefield Park, NJ
    Posts
    3,418
    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.

  5. #5

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width