public class HelloDraw2d {
/**
* @param args
*/
public static void main(String[] args) {
Shell shell = new Shell();
shell.open();
shell.setText("Hello draw2d");
LightweightSystem lws = new LightweightSystem(shell);
IFigure label = new Label("hello draw2d");
lws.setContents(label);
Display display = Display.getDefault();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
}
}