Drag and Drop from Desktop to Swing app?

Hi.

I am struggling to get drag and drop working properly.

I can drag and drop stuff within the same application OK. I can also drag and drop stuff from for instance Eclipse into my application OK.

But I want to drag something from my desktop into my application, and that is NOT OK. Is it possible at all, because I sure can’t seem to find out how :wink:

Any ideas?

I’m running Windows 7.

What specifically are you dragging, a file? And what DataFlavors are you supporting?

I’ve tried dragging simple text, and files. Like I said, it works between different components within the same application, and from Eclipse to my application.