| Package | Description | 
|---|---|
| java.awt | Contains all of the classes for creating user
interfaces and for painting graphics and images. | 
| 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. | 
| Modifier and Type | Method and Description | 
|---|---|
| DropTarget | Component. getDropTarget()Gets the  DropTargetassociated with thisComponent. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | Component. setDropTarget(DropTarget dt)Associate a  DropTargetwith this component. | 
| Modifier and Type | Method and Description | 
|---|---|
| DropTarget | DropTargetContext. getDropTarget()This method returns the  DropTargetassociated with thisDropTargetContext. | 
 Submit a bug or feature 
For further API reference and developer documentation, see Java SE Documentation. That documentation contains more detailed, developer-targeted descriptions, with conceptual overviews, definitions of terms, workarounds, and working code examples.
 Copyright © 1993, 2012, Oracle and/or its affiliates.  All rights reserved.