You've verified the defined operation of a GridLayout. If you are not satisfied with this, then I recommend you investigate other layout managers.