using [java] org.eclipse.swt using [java] org.eclipse.swt.widgets::Display using [java] org.eclipse.swt.widgets::Shell using [java] org.eclipse.swt.widgets::Label using [java] org.eclipse.swt.layout::FillLayout using concurrent class Hello { Void main() { display := Display() shell := Shell(display) shell.setText("Hello, World") layout := FillLayout(SWT.VERTICAL) shell.setLayout(layout) label := 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() } }