public void dispose() {
    while (!frameState.compareAndSet(WAITING_STATE, DISPOSING_STATE)) ;
    while (!imageState.compareAndSet(WAITING_STATE, DISPOSING_STATE)) ;
    frameBuffer.dispose();
    BufferUtils.destroyDirectBuffer(frameByteBuffer);
    frameState.compareAndSet(DISPOSING_STATE, DISPOSED_STATE);
    imageState.compareAndSet(DISPOSING_STATE, DISPOSED_STATE);
  }
Dispose this renderer. The underlying frame buffer is also disposed.
jme3-desktop/src/main/java/com/jme3/system/AWTComponentRenderer.java