Drag & drop not working on Mac

后端 未结 2 2091
谎友^
谎友^ 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.

提交回复
热议问题