public ListDialogBox(List<String> strings) { ScrollPanel sPanel = new ScrollPanel(); VerticalPanel vPanel = new VerticalPanel(); vPanel.add(new HTML("<br>")); if (strings != null) { for (String s : strings) { vPanel.add(new Label(s)); } } Button close = new Button("close"); close.addClickHandler(crosshandler); vPanel.add(new HTML("<br>")); vPanel.add(new HTML("<hr>")); vPanel.add(new HTML("<br>")); vPanel.add(close); sPanel.setVisible(true); sPanel.add(vPanel); this.add(sPanel); this.setText("RAW data from DB"); }