regression in GLCanvas

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view

regression in GLCanvas

This post was updated on .

When I used the build 198, I could move a GLCanvas from a frame to another one (I remove it from a Frame and I add it into another one). When I switched to the build 222, I get a NullPointerException because the Drawable is null when addNotify() is called. Is it a regression or do I do something that should not be possible?

I get this exception sometimes with the build 198:
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: Info: Nativewindow X11 Error: Display 0x2aaafc16dac0, Code 0x3, errno Succès
        at sun.awt.X11.XlibWrapper.XGetWindowProperty(Native Method)
        at sun.awt.X11.WindowPropertyGetter.execute(
        at sun.awt.X11.WindowPropertyGetter.execute(
        at sun.awt.X11.XWindow.getWMState(
        at sun.awt.X11.XWindow.handlePropertyNotify(
        at sun.awt.X11.XWindowPeer.handlePropertyNotify(
        at sun.awt.X11.XFramePeer.handlePropertyNotify(
        at sun.awt.X11.XBaseWindow.dispatchEvent(
        at sun.awt.X11.XBaseWindow.dispatchToWindow(
        at sun.awt.X11.XToolkit.dispatchEvent(

The build 210 does not throw this exception and does not throw the NullPointerException.

Edit.: the regression comes from the build 222. The build 221 works fine in my case. removeNotify() destroys the drawable but addNotify does not create it as the creation of the drawable has been moved into the constructor.
Julien Gouesse | Personal blog | Website