we would like the user to be able to pick a file from native file system and drag & drop it to our a

Posted by user261740 on Stack Overflow See other posts from Stack Overflow or by user261740
Published on 2010-01-29T11:19:52Z Indexed on 2010/04/21 8:03 UTC
Read the original article Hit count: 257

Filed under:
|
|

We have an existing java desktop application which starts, when user click on our application icon (placed on desktop) OR double click on executable(.exe). It opens the frame which allows user to select the file from native file system and uploads it to the server.

Now we would like to facilitate user, that he can pick a file from windows explorer and drag it to the "shortcut / Application icon" & drop it on the "shortcut / Application icon" on the desktop. This would start the uploading of that file on the server.

we need to capture the action of "drop" and launch on shortcut.. which may be completely not related to java, it can be very generic to any application.

We are using JSmooth to build an executable from jar and NSIS for installer purpose. I would like to know..

How we can launch the application if user drops local file onto the system icon ? How we get the absolute path of file name which has been dropped onto the executable ?

© Stack Overflow or respective owner

Related posts about operating-system

Related posts about General