@Override
        public void removeNotify() {
            synchronized (lock) {
                // prepare for a possible re-adding
                if ((OS != Platform.LINUX) && (context != NULL)) {
                    platformCanvas.deleteContext(context);
                    context = NULL;
                }
                hasNativePeer.set(false);
            }            
            super.removeNotify();
            if (OS == Platform.WINDOWS) {
                LOGGER.log(Level.WARNING, "Windows does not support this functionality: remove(__canvas__)");
            }
        }
(non-Javadoc)
@see java.awt.Component#removeNotify()
jme3-lwjgl3/src/main/java/com/jme3/system/lwjgl/LwjglCanvas.java