| 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 | 
|---|---|
| abstract java.awt.dnd.peer.DragSourceContextPeer | Toolkit. createDragSourceContextPeer(DragGestureEvent dge)Creates the peer for a DragSourceContext. | 
| Modifier and Type | Method and Description | 
|---|---|
| void | DropTargetContext. dropComplete(boolean success)This method signals that the drop is completed and
 if it was successful or not. | 
| protected Transferable | DropTargetContext. getTransferable()get the Transferable (proxy) operand of this operation | 
| void | DragGestureEvent. startDrag(Cursor dragCursor,
         Image dragImage,
         Point imageOffset,
         Transferable transferable,
         DragSourceListener dsl)Start the drag given the initial  Cursorto display,
 a dragImage, the offset of
 theImage,
 theTransferableobject, and
 theDragSourceListenerto use. | 
| void | DragGestureEvent. startDrag(Cursor dragCursor,
         Transferable transferable)Starts the drag operation given the  Cursorfor this drag
 operation and theTransferablerepresenting the source data
 for this drag operation. | 
| void | DragGestureEvent. startDrag(Cursor dragCursor,
         Transferable transferable,
         DragSourceListener dsl)Starts the drag given the initial  Cursorto display,
 theTransferableobject,
 and theDragSourceListenerto use. | 
| void | DragSource. startDrag(DragGestureEvent trigger,
         Cursor dragCursor,
         Image dragImage,
         Point dragOffset,
         Transferable transferable,
         DragSourceListener dsl)Start a drag, given the  DragGestureEventthat initiated the drag, the initialCursorto use,
 theImageto drag,
 the offset of theImageorigin
 from the hotspot of theCursorat the instant of the trigger,
 the subject data of the drag, and
 theDragSourceListener. | 
| void | DragSource. startDrag(DragGestureEvent trigger,
         Cursor dragCursor,
         Image dragImage,
         Point imageOffset,
         Transferable transferable,
         DragSourceListener dsl,
         FlavorMap flavorMap)Start a drag, given the  DragGestureEventthat initiated the drag, the initialCursorto use,
 theImageto drag,
 the offset of theImageorigin
 from the hotspot of theCursorat
 the instant of the trigger,
 theTransferablesubject data
 of the drag, theDragSourceListener,
 and theFlavorMap. | 
| void | DragSource. startDrag(DragGestureEvent trigger,
         Cursor dragCursor,
         Transferable transferable,
         DragSourceListener dsl)Start a drag, given the  DragGestureEventthat initiated the drag, the initialCursorto
 use,
 theTransferablesubject data
 of the drag, and theDragSourceListener. | 
| void | DragSource. startDrag(DragGestureEvent trigger,
         Cursor dragCursor,
         Transferable transferable,
         DragSourceListener dsl,
         FlavorMap flavorMap)Start a drag, given the  DragGestureEventthat initiated the drag, the initialCursorto use,
 theTransferablesubject data
 of the drag, theDragSourceListener,
 and theFlavorMap. | 
 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, 2017, Oracle and/or its affiliates.  All rights reserved. Use is subject to license terms. Also see the documentation redistribution policy.