How can I cancel Drag and Drop operation in Java/Swing programmatically?
Posted
by AlexV
on Stack Overflow
See other posts from Stack Overflow
or by AlexV
Published on 2010-03-11T03:00:10Z
Indexed on
2010/03/12
5:17 UTC
Read the original article
Hit count: 298
I am just wondering if it's possible to I cancel "Drag and Drop" operation in Java/Swing programmatically? So the effect would be similar to if the user pressed the "ESC" key?
I was expecting DragSourceDragEvent
or DragSourceContext
to have a cancelDrag()
method, similar to DropTargetDragEvent
which has acceptDrag()
and rejectDrag()
methods (both of which does not do what I want).
I am missing something?
© Stack Overflow or respective owner