A typical SWT sample code looks like the following:
final Display display = Display.getDefault();
final Shell shell = createMyShell(display);
shell.open();
while (!shell.isDisposed()) {
if (!display.readAndDispatch()) {
display.sleep();
}
}
What is the difference between the Display
and the Shell
? If multiple windows have to be shown, does each one need an own loop?