In SWT, by definition, the thread that creates the display is called the user interface thread. This thread is responsible for reading and dispatching events from the operating system event queue and invoking listeners in response. You can find out which thread is the user interface thread for a particular display by calling the getThread() method on the display:
getThread() Returns the thread that is running the event loop on that display.