public class Dot1 {
/**
* @param args
*/
public static void main(String[] args) {
Shell shell = new Shell();
shell.open();
shell.setText("Hello dot");
GC gc = new GC(shell);
LightweightSystem lws = new LightweightSystem(shell);
IFigure dot = new Ellipse();
Graphics graphics = new SWTGraphics(gc);
dot.paint(graphics);
lws.setContents(dot);
Display display = Display.getDefault();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
}
}