[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[news.eclipse.platform.swt] Re: Keeping shell open?

Like Matthew said before, you missed the event loop

You can obtain the display by calling getDisplay on the Shell instance.

After s.open(), try

Display display = s.getDisplay();
while (!s.isDisposed())
   if (!display.readAndDispatch())
     display.sleep();