Drag and Drop-related APIs and Developer Guides (original) (raw)
Drag and Drop enables data transfer across Java programming language and native applications, between Java programming language applications, and within a single Java programming language application.
Support for drag and drop is implemented primarily in the AWT package, but there is additional support built in to the Swing GUI classes. In many cases, drag and drop support can be enabled by calling a single method on a Swing component. For more information, please see How to Use Drag and Drop and Data Transfer, a section in The Swing Tutorial
API Specification
- java.awt.datatransfer- Provides interfaces and classes for transferring data between and within applications.
- java.awt.dnd - Drag and drop is a direct manipulation gesture, found in many Graphical User Interface systems, that provides a mechanism to transfer information between two entities logically associated with presentation elements in the GUI.
- Drag and Drop Specification
Tutorials and Programmer's Guides
API Enhancements
- Drag and Drop Enhancements in Java SE 7
- Swing Enhancements in the Java SE 6.0
- AWT Enhancements in the Java SE 5.0 - contains a section that specifically deals with enhancements to drag and drop.
More Information
Copyright © 1993, 2025, Oracle and/or its affiliates. All rights reserved.