wholeScreen.x() (and .top()) is always 0, which results in struts being set into negative numbers, which is wrong.