public void open() {
		// Create the dialog window
		Shell shell = new Shell(getParent(), getStyle()); //Creates a shell object
		shell.setText(getText()); //Sets the shell text to the return of getText
		shell.setSize(WIDTH, HEIGHT); //Sets the size
		createContents(shell); //Calls create contents
		shell.open(); //Opens the shell
		Display display = getParent().getDisplay(); //Sets the display to the display object of the parent
		while (!shell.isDisposed()) { //While the shell isn't disposed
			if (!display.readAndDispatch()) { //If there are no events on the stack
				display.sleep(); //Put the display to sleep
			}
		}
	}