File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Drag and Drop question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Drag and Drop question" Watch "Drag and Drop question" New topic
Author

Drag and Drop question

Jeremy Zink
Greenhorn

Joined: May 30, 2001
Posts: 3
How can I distinquish between two drag sources of the same data type? Both sources are Vectors, each of which is wrapped in it's own Transferrable as well as being assigned unique Data Flavors. However, inside the Drop() method where I ask isDataFlavorSupported( myFlavor), no distinction is made between the DataFlavor names. Any help in resolving this issue is greatly appreciated. This is only my second week working with dnd and I thought I had a pretty good understanding of the API up until this point.

 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: Drag and Drop question