JMEDesktop Resize

I was trying to resize my JMEDesktop and came across the following code in JMEDesktop.java…



    /**
     * not supported.
     * @param width -
     * @param height -
     */
    public void resize( float width, float height ) {
        //TODO: implement resizing?
        throw new UnsupportedOperationException( "resizing JMEDesktop not yet implemented!" );
    }



Why isn't this supported? Is it too complicated?

Kind of, yes. It would require to resize the texture as well. I'd recommend to initialize the JMEDesktop with the maximum expected size or recreate it for resizing.