The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
October 2001



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Are we missing a point here?

Posted by Jay on October 26, 2001 at 9:12 PM

While I feel reading from/writing to local host is a nice idea, its like reinventing the wheel. We have an excellent framework in dnd.* and datatransfer.* Extending those classes builds a good piece of software.

In my opinion, extending DataFlavor to include a field (imageFlavor) and using DragSource.startDrag() which takes an image as a parameter should solve the problem.

or simply, drag the path of the image and let the target container take care of loading the image.

Anyways, Avin, let us know how you finished it (or if you need more ideas)!


  • Dragons Matt Gerrans October 26, 2001 at 11:51 PM (0)

Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us