Changed setWindow to void.