SWT Invalid Thread Access on Mac OSX (Eclipse Helios)
问题 I have the simplest of all simple SWT programs (it doesn't even display hello world yet): package com.samples.swt.first; import org.eclipse.swt.widgets.Display; import org.eclipse.swt.widgets.Shell; public class Main { public static void main(String[] args) { Display display = new Display(); Shell shell = new Shell(display); shell.open(); while (!shell.isDisposed()) { if (!display.readAndDispatch()) { display.sleep(); } } display.dispose(); } } When I run this on Mac OSX from Eclipse Helios,