scroll pane added
needs new resizing policy when jframe maximum size is set according to contentSize