|Drag from SWT to Desktop [message #412360]
||Fri, 23 January 2004 12:27
Originally posted by: daniel.gaiottino.com|
I am trying to work with SWT and find it much easier to work with than
Java SWING. I am having one problem though in my project. I am comverting
an application i wrote with Suns java & swing into SWT and cannot seem to
find how to drag from my SWT application to my desktop.
I had no problem dragging an image from my desktop ontop of a canvas and
then displaying the image on the canvas, but i cant seem to figure out how
to drag an image on a canvas to my desktop. I have enebled Drag from my
canvas and can Drag/Drop between two canvases but not to my desktop or any
other native folder.
Had i gotten the path of where my drop occured then i could just create a
new file there but i am not getting this either.
Could someone show me a snippet for this or let me know how to proceed?
I've read the Drag and Drop articles but didn't get any wiser. A kick in
the right direction would be great.
|Re: Drag from SWT to Desktop [message #1050240 is a reply to message #415398]
||Fri, 26 April 2013 18:51
| Ned Twigg
Registered: April 2013
I know this is an old thread, but I've got the exact same problem. Looks like this problem has come up for a couple people, and nobody's found an answer. Looks like Simon might have one though!|
I've posted some example code on StackOverflow, but I can't link to it because I don't have enough cred on the Eclipse.org forums... Here's the URL for copy-pasting:
Simon - if you've still got your complicated example, I'd be more than happy to simplify it if you don't have time.
Powered by FUDForum
. Page generated in 0.07943 seconds