7.14.1. Data Transfer Support in Swing
Starting with Java SE 1.4, several Swing components have built-in support for drag and drop (see Table 7.7). You can drag selected text from a number of components, and you can drop text into text components. For backward compatibility, you must call the
setDragEnabled method to activate dragging. Dropping is always enabled.
java.awt.dnd package provides a lower-level drag-and-drop API that forms the basis for the Swing drag and drop. We do not ...