Question : How to create a Custom transferable object (with a custom Dataflavour)?

In one of my projects , I need to drag and drop image from a given set of images to a new panel/canvas.
If i create a custom Dataflavour for type "image" , i assume that i can only transfer the image. But my problem is ,I need to check which image was drag and dropped to the new panel.(and act accordingly)

How could i acheive this?

Answer : How to create a Custom transferable object (with a custom Dataflavour)?

Have a look @ http://java.sun.com/docs/books/tutorial/uiswing/dnd/intro.html
Random Solutions  
 
programming4us programming4us