Drag and drop with an image

Posted by DJClayworth on Stack Overflow See other posts from Stack Overflow or by DJClayworth
Published on 2010-03-11T19:07:56Z Indexed on 2010/03/11 19:09 UTC
Read the original article Hit count: 713

Filed under:
|
|

I need to create a drag and drop system in swing where an image of the thing being dragged is attached to the cursor during the drag. In theory this is achieveable with

public Icon getVisualRepresentation(Transferable t)

but there appears to be a long standing bug (here) that means this method is never called. I know I can do it by implementing my own DnD system with DragSource etc., but does anyone know of an easier workround that will get me what I need?

© Stack Overflow or respective owner

Related posts about java

Related posts about drag-and-drop