Chapter 8. DRAG-AND-DROP
Topics in this Chapter
The Drag Source
The Drop Target
The Lifecycle of a Drag-and-Drop Operation
Dragging Files
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 ...
Get Core SWING advanced programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.