Start line:  
End line:  

Snippet Preview

Snippet HTML Code

Stack Overflow Questions
 package de.swm.gwt.client.widget;
 
Dialog to display information messages. copyright (C) 2014, SWM Services GmbH
public class InfoDialog extends DialogBox {

Default constructor.

Parameters:
header title of dialog
lines lines to display
	public InfoDialog(String headerString... lines) {
		super(truetrue);
		setText(header);
		FlowPanel panel = new FlowPanel();
		for (String line : lines) {
			panel.add(new Label(line));
		}
		FlowPanel buttonPanel = new FlowPanel();
		Button okButton = new Button("OK");
		okButton.addClickHandler(new ClickHandler() {
			public void onClick(ClickEvent event) {
			}
		});
		buttonPanel.add(okButton);
		panel.add(buttonPanel);
		setWidget(panel);
	}
New to GrepCode? Check out our FAQ X