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 DndTe
Since you've got the line
dt.addDropListener(new DropTargetAdapter() {
it could possibly mean the existence of a bug for developing Java SWT applications on Mac OS X (maybe fixed in a later released version possibly?)
do check out the related stackoverflow question phrased another way @ here
and it might be exactly your problem already submitted as a bug feature request.
This was a bug in SWT (issue #267381 is related, but might not be the actual issue).
As Mike L. pointed out in a comment, it was fixed in SWT 3.7M4.