rendered paste bodypublic class Dialog extends Shell { private Shell shell; private Display display; public ConfigDialog() { setup(); } public static void main(String args[]) { //for testing ConfigDialog c = new ConfigDialog(); c.run(); } public void setup() { display = new Display(); shell = new Shell (display); shell.setBounds(200,200,200,120); shell.setVisible(true); } public void run() { while (!shell.isDisposed ()) { if (!display.readAndDispatch ()) display.sleep (); } display.dispose (); }}