public void run() {
		shell.open();
		while(!shell.isDisposed()) { //while shell is not disposed
			if(!display.readAndDispatch()) { // if there is no event on the event queue
				display.sleep(); //return the resources to the cpu and sleep
			}
		}
		display.dispose(); //Dispose the display
	}