Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How can I get current File-Folder location during DnD outside JVM?  RSS feed

 
Ravi Sathish
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Greetings Ranchers,

I want to have a Swing application from which I can drag & drop files between desktop & applications. Dragging and dropping files into JComponents is kind of well documented. But is there way to do the exact opposite copying someting from Swing application to JDesktop?

i.e creating a Transferable object using flavor DataFlavor.javaFileListFlavor

If that is not possible is there way to find out what's file loctaion where drop is happening?

TIA
 
Ravi Sathish
Ranch Hand
Posts: 131
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
never mind its a dumb question. I wasn't trying hard. You need to send it the way you get it i.e. Transferable Object should be a List with all list elements being java.io.File
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!