Skip to Main Content

Java Programming

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Interested in getting your voice heard by members of the Developer Marketing team at Oracle? Check out this post for AppDev or this post for AI focus group information.

How to implement drag from Java Desktop Application & drop to Native File?

875776Mar 9 2012 — edited Mar 9 2012
I am currently using JAVA 6 and my Java desktop application shows a list of the files from server. I would like to have a download selected files to native file system using Drag and Drop. I have gone through many links but almost every link describes the Drag and Drop with-in a Java swing applications. I have not found help to implement download using drag from Java desktop Application & drop to Native File.

For example, let's suppose, I have dragged the file from my java swing application and dropped directly to the desktop then download should take place and I should know where the file is being downloaded. The files that are being downloaded may be in GBs and take several hours to download. I need destination location because if the download fails then I can re-try download.

Please consider following steps to clarify what I have explained, how it will work and what is my requirement -

1. User runs application.
2. The list of files from server displays in JTable.
3. Now user restores down the application window.
4. User selects some files from JTable.
5. Drags out of the application onto his computer to download.
6. Downloading supposed to be started from server to the location where he drops that file on his computer.


Any help will be greatly appreciated.

Comments

Processing
Locked Post
New comments cannot be posted to this locked post.

Post Details

Locked on Apr 6 2012
Added on Mar 9 2012
7 comments
412 views