Strange graphics

I downloaded the Gears.java, compiled it and ran it. When I moved the frame to another location it seemed that the canvas still wanted to paint to that same location where the frame had been in the first place. If I resize the frame the gears are again painted correctly.

The cmd line to start the app:

C:>java -classpath .;“C:\Program Files\Java\jre1.5.0_06\lib\jogl.jar” -Dsun.java2d.noddraw=true Gears

When I tried to test the gears demo by running it with Webstart from jogl’s official pages everything worked fine and the same effect didn’t appear. Web Start uses the same jre (1.5.0_06) and changing it to 1.4.2_11 made no difference.

Here’s a picture to demonstrate the effect:

http://www.jalkihiki-hockey.net/tavaraa/weird_gears.jpg

Can anyone tell me where the problem is?

I’m using Windows XP if it helps to solve the problem in any way.

Ok, problem solved. I thought I was using the latest jogl.jar but I was wrong.

Changing the jogl.jar to JSR-231 beta 03 fixed the problem.