Topics in this Chapter
The Drag Source
The Drop Target
The Lifecycle of a Drag-and-Drop Operation
Transferring Text Using Drag-and-Drop
Implementing Drag-and-Drop for Tree Structures
This chapter looks at the drag-and-drop feature that was introduced in the Java 2 platform. Although it isn't strictly part of Swing, drag-and-drop comes within the somewhat larger scope of the Java Foundation Classes and there is no doubt that making proper use of this feature can greatly enhance the user interface of all but the simplest of applications. Drag-and-drop builds on the data transfer feature originally introduced to support cut-and-paste in Java Developer's Kit (JDK) 1.1. Because of this dependency, there is extensive ...