Hi!
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(WindowPropertyGetter.java:87)
at sun.awt.X11.WindowPropertyGetter.execute(WindowPropertyGetter.java:58)
at sun.awt.X11.XWindow.getWMState(XWindow.java:1179)
at sun.awt.X11.XWindow.handlePropertyNotify(XWindow.java:1209)
at sun.awt.X11.XWindowPeer.handlePropertyNotify(XWindowPeer.java:1096)
at sun.awt.X11.XFramePeer.handlePropertyNotify(XFramePeer.java:224)
at sun.awt.X11.XBaseWindow.dispatchEvent(XBaseWindow.java:1141)
at sun.awt.X11.XBaseWindow.dispatchToWindow(XBaseWindow.java:1086)
at sun.awt.X11.XToolkit.dispatchEvent(XToolkit.java:493)
at sun.awt.X11.XToolkit.run(XToolkit.java:599)
at sun.awt.X11.XToolkit.run(XToolkit.java:523)
at java.lang.Thread.run(Thread.java:619)
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.