import org.eclipse.swt.SWT import org.eclipse.swt.widgets.* import org.eclipse.swt.layout.* class Hello { static void main (args) { def display = new Display() def shell = new Shell(display) shell.setText("Hello, World") def layout = new FillLayout(SWT.VERTICAL) shell.setLayout(layout) def label = new Label(shell,SWT.BORDER) label.setText("Hello, SWT World!") shell.setSize( 640, 480 ) shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep() } } display.dispose() } }