This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

drag and drop from awindows file manager

 
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
Pie
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