Page-Flipping in a Frame

I want to know if it is possible to do page-flipping in a windowed-game [not a full-screen one].
I tried to apply the concept but nothing works:
I have 2 offscreenImages[2 offscreenGraphics] and a screenGraphics.
I paint 1 offscreenGraphic and then I do in my paint method
screenGraphic=offscreenGraphic_1;
then I paint the other one and do similar
screenGraphic=offscreenGraphic_2;
But I can’t see anything.

Questions:

  1. Is it possible to do page_flipping in a Frame?
  2. If yes, can anybody show me some code, or point me to an URL, or anything that might help me?
  3. If not, what is the fastest solution in drawing on a Frame?

A pseudo-code would be fine, I can apply it my code.
Thank you in advance!
Gabi

P.S. I am sure that this must have been discussed here, but my searches turned nothing usefull to me [most of the topics were about full-screen]

Argh! I just answered this one for Gergis. You can’t do page flipping in a window, but double buffering will work. All you need to do is create a frame and get a bufferstrategy. Use as normal with a timer to limit the frame rate (since the VSync isn’t there to limit it). Go look in the “Streaming Wav” topic for a good frame limiting algo.