Creating a Draggable Component

For a GUI component to act as the source of a drag-and-drop operation, it must be associated with five objects:

      java.awt.dnd.DragSource
      java.awt.dnd.DragGestureRecognizer
      java.awt.dnd.DragGestureListener
      java.awt.datatransfer.Transferable
      java.awt.dnd.DragSourceListener

Get JavaBeans Unleashed 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.