Use Overflow
property to show scroll bar if content doesn't fit into the current window size.
Here Overflow.AUTO
means :
Horizontal and/or vertical scrollbars are displayed only if necessary.
Content that extends beyond the remaining visible area is clipped.
Try this
window.setOverflow(com.smartgwt.client.types.Overflow.AUTO);