@Override
    public void cleanup() {
        super.cleanup();

        guiNode.detachChild(statsView);
        guiNode.detachChild(fpsText);
        guiNode.detachChild(darkenFps);
        guiNode.detachChild(darkenStats);
    }
Attaches Statistics View to guiNode and displays it on the screen
above FPS statistics line.
jme3-core/src/main/java/com/jme3/app/StatsAppState.java