title: JavaFX 8, VBox DragEvent - why can't I select the VBox Children
body: <p>Hey I'm currently working on my masterthesis and have a poblem to witch I can't find a solution. 
  I hope someone knows what I'm doing wrong.</p>
  
  <p>Well I created this UI:</p>
  
  <p><a href="https://i.stack.imgur.com/VysVd.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/VysVd.png" alt="enter image description here"></a></p>
  
  <p>Here I'm trying to make the elements in "Properties" dragable and drop them in the lower TextFlow Node.
  The Drag and Drop itself seems to work already. I tried it with one Test-Label.  </p>
  
  <p><a href="https://i.stack.imgur.com/MeRrV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/MeRrV.png" alt="enter image description here"></a></p>
  
  <p>But for some reason I cannot manage to reproduce that with the children in the "Properties" VBox.</p>
  
  <p>This is how I tried it:</p>
  
  <pre><code> private void fillScrollPane(Content content, ScrollPane scrollPane) {
      Map&lt;String, Object&gt; map = content.getProperties();
      scrollPane.setPickOnBounds(false);
      VBox root = new VBox();
      scrollPane.setContent(root);
  
      for (String s : map.keySet()) {
          Object value = map.get(s);
          if (value == null || value.toString().equals("[]") || value.toString().equals(""))
              continue;
          Label t = new Label(s + " : " + value.toString() + "\n");
          t.setOnDragDetected((MouseEvent event) -&gt; {
              Dragboard db = t.startDragAndDrop(TransferMode.MOVE);
              ClipboardContent clipboardContent = new ClipboardContent();
              // Store node ID in order to know what is dragged.
              clipboardContent.putString(t.getId());
              db.setContent(clipboardContent);
              event.consume();
          });
  
          root.getChildren().add(t);
      }
  
  }
  </code></pre>
  
  <p>but instead of draging the children in the VBox it just seems to select the whole VBox on mouseclick ..</p>
  
  <p>So in short: 
  Order is like this
  Scene -> ScrollPane -> VBox -> Label 
  and I want to select the label with a drag event. Direct on Scene it does work but not the VBox. </p>
  
  <p>Does anyone have an idea what I need to change? </p>