Mercurial > projects > dwt-linux
view helloworld.d @ 50:d48f7334742c
FormLayout, FormData, FormAttachment
author | Frank Benoit <benoit@tionex.de> |
---|---|
date | Fri, 11 Jan 2008 10:44:12 +0100 |
parents | f0cac58ac62b |
children | 8f049b136add |
line wrap: on
line source
module helloworld; import dwt.SWT; import dwt.widgets.Display; import dwt.widgets.Shell; void main(){ Display display; Shell shell; display = new Display(); shell = new Shell(display); shell.setText("Simple SWT Sample"); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } }