protected AWTComponentRenderer reshapeInThread(final int width, final int height, final boolean fixAspect) {

        reshapeCurrentViewPort(width, height);

        ViewPort viewPort = getViewPort();
        RenderManager renderManager = getRenderManager();
        FrameBuffer frameBuffer = viewPort.getOutputFrameBuffer();

        AWTComponentRenderer frameTransfer = createFrameTransfer(frameBuffer, width, height);
        frameTransfer.init(renderManager.getRenderer(), isMain());

        if (isMain()) {
            AWTContext context = (AWTContext) getApplication().getContext();
            context.setHeight(height);
            context.setWidth(width);
        }

        return frameTransfer;
    }
Reshape the current frame transfer for the new size.

@param width     the width.
@param height    the height.
@param fixAspect true to fix the aspect ratio.
@return the new frame transfer.
jme3-desktop/src/main/java/com/jme3/system/AWTFrameProcessor.java