This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

DnD from file system into JTree

 
John Gallagher
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have a JTree that has working drag and drop but I cannot figure out how to drag a file from the operation system and drop it into my JTree. My main problem is figuring out what type of data flavor it is. I think it is a "javaFileListFlavor" but when I "getTransferData(javaFileListFlavor)" and try to cast it into any Object, I get an "InvalidDnDOperationException:No drop current caught while getting Data." Any help would be appreciated.
John
 
John Gallagher
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
It's hard to believe that no one has ever done this.
Any ideas?!!!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic