SWT: single or multiple display

SWT is designed to support multiple Display instances, each of which has its own event loop. Why is this useful or required? Isn't it a single Display instance (e.g. Display.getDefault() )?

+4
source share
1 answer

Documents for the Display class say, "Applications created using SWT almost always require only one display." The Display instance is closely related to the user interface thread and has certain restrictions on it to allow the SWT event model to work on top of its own user interface event model.

The only case is if you have several (own) user interface threads, but I'm not sure when it is supported. According to this quote , multiple displays are not supported on GTK or Mac.

+4
source

All Articles