How can I drag virtual files from java swing to windows desktop? -


is possible drag "virtual" file java swing application , drop onto windows desktop? "virtual" mean "not local" file needs downloaded/prepared potentially take long time. have client-server application shows view of remote files. when user drops file on desktop, receive notification of destination folder use start download process java application.

please offer or guidance i've been looking solution while now.

i'm working on similar myself, , have unfortunate news you: windows cannot handle promised files, nor inform java application files dropped. put, there no way handle remote drag-and-drop via dnd api only.

you need create empty files in temp directory somewhere, , hand windows files when mouse leaves swing window. need set watchservice on local filesystem receive notification of file creation. after dropend, check empty files of correct name not in temp directory, , effect transfer @ point (move remote files empty files dropped).


Comments

Popular posts from this blog

javascript - how to protect a flash video from refresh? -

visual studio 2010 - Connect to informix database windows form application -

android - Associate same looper with different threads -