fixed setting window start position and size.

It seems like the current code for setting the display mode which affects the window size was based on incorrect example code on the internet that doesnt actually work.
print stack traces for exceptions thrown in window events.
updated name of namespace of project name.
use java 1.6