Screen capture images are corrupt

Hi,
I’ve been trying to generate screen captures of my Java3d program. I have used the code from the J3d FAQ (http://www.j3d.org/faq/capturing.html). However this does not appear to work. I get blank jpegs (either white, grey or black) until the window is resized, after which I get images such as the example at the following link :

Which as you can see is not right. However the squares at the right of the screen look like the left hand side of the image I’m trying to capture.

The screen also flashes white when the screenshot is taken (regardless of whether repaint is called). It is an applet running in Eclipse, but I have also tried running it as an applcation with the same results…

Has anyone got any suggestions
TIA
plaidTortoise.

http://www.java-gaming.org/cgi-bin/JGNetForums/YaBB.cgi?board=3D;action=display;num=1092234068;start=2#2

Ta,
The approach taken in the link looked similar to the code I’d used. But I gave it a try with the same results. I was then going to try it on a different machine, but had various windows/disk problems.

However last night I installed the Direct-X version of J3D v1.3.1 (previously I was using the Open-gl version) & the screen capture code works fine, the screen does flash white when the screen is captured, but that doesn’t matter.

Cheers,
pT