M: add preferredsize option to group and panel