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.
0 Response to "Scrollable table with GWT"
Post a Comment