FileDocCategorySizeDatePackage
ShellDialogExample.javaAPI DocExample489Sat Oct 30 19:44:48 BST 2004None

ShellDialogExample.java

import org.eclipse.swt.widgets.*;

public class ShellDialogExample {
    ShellDialogExample()
    {
        Display d = new Display();
        Shell s = new Shell(d);
        s.setSize(300,300);
        s.open();
        DialogExample de = new DialogExample(s);
        String result = de.open();
        System.out.println(result);
        while(!s.isDisposed()){
            if(!d.readAndDispatch())
                d.sleep();
        }
        d.dispose();

    }
}