Adding method setWindowSize