Drag & drop not working on Mac
问题 I'm trying to make it possible to drag files from the Finder into my SWT application. On Windows and Ubuntu, the following bit of code works: public class DndTest { public static void main(final String[] args) { final Display display = new Display(); final Shell shell = new Shell(display, SWT.DIALOG_TRIM); shell.setText("Drag & drop test"); shell.setSize(200, 200); final FormLayout layout = new FormLayout(); shell.setLayout(layout); final Label lbl = new Label(shell, SWT.NORMAL); lbl