from java.lang import System from org.eclipse.swt import SWT from org.eclipse.swt.widgets import Display from org.eclipse.swt.widgets import Shell from org.eclipse.swt.widgets import Label from org.eclipse.swt.layout import FillLayout 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 not shell.isDisposed(): if not display.readAndDispatch(): display.sleep() display.dispose()