Test onSize event in Borderlayout