for (int i = 0; i < 5; i++) {
RootFlexPanel rootFlexPanel = new RootFlexPanel();
ScrollPanel scrollPanel2 = new ScrollPanel();
scrollPanel2.setScrollingEnabledX(false);
// scrollPanel2.setWidth("100%");
Panel flowPanel3 = new Panel();
flowPanel3.setRound(true);
for (int j = 0; j < 10; j++) {
HTML html = new HTML("Slide: " + (i + 1));
html.getElement().getStyle().setMarginBottom(300, Unit.PX);
flowPanel3.add(html);
}
scrollPanel2.setWidget(flowPanel3);
rootFlexPanel.add(scrollPanel2);
carousel.add(rootFlexPanel);
}
}