gui : setting screen size using setExtendedState