Twinview and GLCanvas problem

I’m using ubuntu 8.10, nvidia driver 180.44 and i have two separated XWindow screens 0.0 and 0.1
if i running the code from issuu 316(New - Multi-Head issues, identical to issue 241 )
on screen 0.0 i have no errors(but the frame is created on screen 0.1)

on screen 0.1 i have the following exception:
Searching for TwinView complement to: X Screen Device – id: :0.1 (host=, serverID=0, displayID=1)
Testing: X Screen Device – id: :0.0 (host=, serverID=0, displayID=0)
TwinView Pair Identified!
Frame is on device with ID: :0.1
Exception in thread “main” java.lang.IllegalArgumentException: GLDrawableFactory.chooseGraphicsConfiguration() was not used when creating this Component
at com.sun.opengl.impl.x11.X11GLDrawableFactory.getGLDrawable(X11GLDrawableFactory.java:238)
at javax.media.opengl.GLCanvas.(GLCanvas.java:142)
at javax.media.opengl.GLCanvas.(GLCanvas.java:90)
at javax.media.opengl.GLCanvas.(GLCanvas.java:83)
at de.fhh.master.tryglcanvas.JOGLWithNVidiaTwinView.addCanvas(JOGLWithNVidiaTwinView.java:110)
at de.fhh.master.tryglcanvas.JOGLWithNVidiaTwinView.main(JOGLWithNVidiaTwinView.java:75)

have you any solution for it?
Thanks!

The last revision shall fix this, due to the fact that of following the GraphicsConfiguration (GC) more strict.
The screen number is also determined now … let us know …
Well, somehow I couldn’t figure out the original display connection AWT uses,
always NULL.
Sorry, I have no multiview here.