I'm just wondering if I can undo the drag and drop operation in Java / Swing programmatically? Thus, the effect will be similar to the way the user pressed the "ESC" key?
I was expecting a DragSourceDragEvent or DragSourceContext to have a cancelDrag() method similar to DropTargetDragEvent , which has acceptDrag() and rejectDrag() methods (both of which fail to do what I want).
Am I missing something?
source share