title: JavaFX onDragOver event unable to be reached
body: <p>I am unable to reach any event besides onDragDetected and onDragDone. I am unsure why.</p>
  <p>I am using Text objects and attempting to drag from one Text object to the other</p>
  <p>After running the program, I can only print the following:</p>
  <p>OnDragDetected</p>
  <p>OnDragDone</p>
  <p>OnDragDetected</p>
  <p>My minimal reproducible example is as follows:</p>
  <pre><code>    
  public class Main extends Application {
      @Override public void start(Stage stage) {
          stage.setTitle(&quot;Hello Drag And Drop&quot;);
  
          Group root = new Group();
          Scene scene = new Scene(root, 400, 200);
          scene.setFill(Color.LIGHTGREEN);
  
          final Text source = new Text(50, 100, &quot;DRAG ME&quot;);
          source.setScaleX(2.0);
          source.setScaleY(2.0);
  
          final Text target = new Text(250, 100, &quot;DROP HERE&quot;);
          target.setScaleX(2.0);
          target.setScaleY(2.0);
  
          source.setOnDragDetected(new EventHandler &lt;MouseEvent&gt;() {
              public void handle(MouseEvent event) {
                  /* drag was detected, start drag-and-drop gesture*/
                  System.out.println(&quot;onDragDetected&quot;);
  
                  /* allow any transfer mode */
                  Dragboard db = source.startDragAndDrop(TransferMode.ANY);
  
                  /* put a string on dragboard */
                  ClipboardContent content = new ClipboardContent();
                  content.putString(source.getText());
                  db.setContent(content);
  
                  event.consume();
              }
          });
  
          target.setOnDragOver(new EventHandler &lt;DragEvent&gt;() {
              public void handle(DragEvent event) {
                  /* data is dragged over the target */
                  event.acceptTransferModes(TransferMode.ANY);
                  System.out.println(&quot;onDragOver&quot;);
  
                  event.consume();
              }
          });
  
          target.setOnDragEntered(new EventHandler &lt;DragEvent&gt;() {
              public void handle(DragEvent event) {
                  System.out.println(&quot;onDragEntered&quot;);
                  event.consume();
              }
          });
  
          target.setOnDragExited(new EventHandler &lt;DragEvent&gt;() {
              public void handle(DragEvent event) {
                  System.out.println(&quot;onDragExited&quot;);
  
                  event.consume();
              }
          });
  
          target.setOnDragDropped(new EventHandler &lt;DragEvent&gt;() {
              public void handle(DragEvent event) {
                  System.out.println(&quot;onDragDropped&quot;);
  
                  event.consume();
              }
          });
  
          source.setOnDragDone(new EventHandler &lt;DragEvent&gt;() {
              public void handle(DragEvent event) {
                  System.out.println(&quot;onDragDone&quot;);
  
  
                  event.consume();
              }
          });
  
          root.getChildren().add(source);
          root.getChildren().add(target);
          stage.setScene(scene);
          stage.show();
      }
  
      public static void main(String[] args) {
          launch(args);
      }
  }
  </code></pre>