You can certainly use repaint() with VolatileImages as back buffers.

  The alternative approach is called "active rendering", where you
  control when stuff gets rendered.

  Take a look at this:
    http://java.sun.com/docs/books/tutorial/extra/fullscreen/rendering.html

  While this is a "full screen" tutorial, the same applies for rendering
  in windowed mode.

  Also, I reiterate, it is better to use active rendering and BufferStrategy
  for double buffering, especially if your application is 'game-like'.

  Thanks,
    Dmitri


[EMAIL PROTECTED] wrote:
Hi Ken,

With VolitileImages, you should render directly from
your program by calling your own render method directly.
Don't call repaint().

I do use my own render method, but that method only renders on my background 
volatile image. After that is finished I somehow have to get my image onto the 
screen (or to be more precise on my panel). Then, I assume, I have to call 
repaint() (of the panel) out of my own render method, don't I?

Maik
[Message sent by forum member 'kiamur' (kiamur)]

http://forums.java.net/jive/thread.jspa?messageID=291577

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST".  For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".

Reply via email to