Ivan Khavantsev
Ivan Khavantsev

Reputation: 31

JavaFX Drag and Drop Phases

JavaFX Drag and Drop Phases:

  1. Source: onDragDetected
  2. Target: OnDragOver
  3. Target: onDragDropped
  4. Source: onDragDone

Can I do something after phase 3 on source side? (Source and Target is different applications). For example: I want unpack file from archive after onDragDropped and transfer this file to Target. How can i do it?

Upvotes: 3

Views: 349

Answers (1)

Neuron
Neuron

Reputation: 5833

Short answer: No

setOnDragDropped(...) literally happens just after you finished the drag&drop gesture. There is nothing after that, except of course the notification which is sent to the source for setOnDragDone(...).

Why can't you unpack your file in setOnDragDropped(...)? This seems to be the perfect place to do so

Upvotes: 1

Related Questions