O'Reilly logo

Learn JavaFX 8: Building User Experience and Interfaces with Java 8 by Kishori Sharan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

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 ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required