J2SE display size fix for GameInator

Modify create window function so that it can be used together with
GameInator