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 TransferHandler.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?
In the end I used the old style drag-and-drop to implement what I wanted. However I have no reason to think abrightwell’s solution wouldn’t work just as well – this was just the best way at the time.