Drag & drop not working on Mac

后端 未结 2 2125
谎友^
谎友^ 2021-02-20 02:25

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         


        
相关标签:
2条回答
  • 2021-02-20 02:34

    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.

    0 讨论(0)
  • 2021-02-20 02:37

    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.

    0 讨论(0)
提交回复
热议问题