CHAPTER 26

image

Understanding Drag and Drop

In this chapter, you will learn:

  • What a press-drag-release gesture is
  • How to use a dragboard to facilitate data transfers
  • How to initiate and detect a drag-and-drop gesture
  • How to transfer data from the source to the target using a drag-and-drop gesture
  • How to transfer images using a drag-and-drop gesture
  • How to transfer custom data between the source and the target using a drag-and-drop gesture

What Is a Press-Drag-Release Gesture?

A press-drag-release gesture is a user action of pressing a mouse button, dragging the mouse with the pressed button, and releasing the button. The gesture can be initiated on ...

Get Learn JavaFX 8: Building User Experience and Interfaces with Java 8 now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.