com.google.gwt.user.client.ui.ScrollPanel and com.google.gwt.user.client.ui.FlexTable helps in creating scrollable table.
![](https://blogger.googleusercontent.com/img/b/R29vZ2xl/AVvXsEgsF3RiigPE-B8bythsv-wY1rGKT68QfvjyfwM54Q4-p8Dd-idoLVYyCVGd6_u011n-983rDLpFoYD2e_zrkTPp60v249AtYNMJGpToIhg6yq08DM4Nu3wATQW94OMKNeBaC97BMg/s1600/Scrollable+table+with+GWT+www.digizol.com.png)
com.google.gwt.user.client.ui.ScrollPanel and com.google.gwt.user.client.ui.FlexTable.The data table was added inside the Scrollable Panel.
For clarification, we have added the code below.
ScrollPanel scrollPanel = new ScrollPanel();
FlexTable dataTable = new FlexTable();
dataTable.setWidth("100%");
scrollPanel.add(dataTable);
scrollPanel.setSize("300", "200");
// add data to table
// ....
For setting width and height; it's advised to use CSS rules, but for ease of understanding we have shown some hard coded values here.
COMMENTS