public void unbind() {

        if (viewPort != null) {
            viewPort.removeProcessor(this);
            viewPort = null;
        }

        if (EventQueue.isDispatchThread()) {
            unbindDestination();
        } else {
            EventQueue.invokeLater(new Runnable() {

                @Override
                public void run() {
                    unbindDestination();
                }});
        }

    }
Unbind this processor from its current destination.
jme3-desktop/src/main/java/com/jme3/system/AWTFrameProcessor.java