public void swt() throws SWTException {
		display = new Display();
		shell = new Shell(display);
		createContents();
		addListener();
		update();

		shell.open();
		shell.layout();
		while (!shell.isDisposed()) {
			if (!display.readAndDispatch()) {
				display.sleep();
			}
		}
		display.dispose();
	}