This week's book giveaway is in the Jython/Python forum.
We're giving away four copies of Murach's Python Programming and have Michael Urban and Joel Murach on-line!
See this thread for details.
Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

drag and drop from awindows file manager  RSS feed

 
aymane chetibi
Ranch Hand
Posts: 175
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all,

is it possible in java to drag and drop a file from windows into a java application.
Iam developping the interface for an application that supports file sharing, and I want the user to drag and drop the file it wants to share into some part of the GUI.

is that possible? if yes how can it be done ???

thanks a lot for your help.
regards,
 
Craig Wood
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
See How to Use Drag and Drop and Data Transfer in the Swing tutorial.
File transfer is discussed in the section Importing a New Flavor: Files.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!