我刚学习SWT,在新建了一个应用程序,发现都有一段这样的程序:
while (!shell.isDisposed()) {
if (!display.readAndDispatch())
display.sleep();
}请问这样是什么意思,有什么作用!