protected void notifyComponentResized(int newWidth, int newHeight, boolean fixAspect) {

        newWidth = Math.max(newWidth, 1);
        newHeight = Math.max(newHeight, 1);

        if (askWidth == newWidth && askWidth == newHeight && askFixAspect == fixAspect) {
            return;
        }

        askWidth = newWidth;
        askHeight = newHeight;
        askFixAspect = fixAspect;
        reshapeNeeded.set(2);
    }
Handle resizing.

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