title: Java fx frop drag and drop issue
body: <p>How to do drag and drop within one listview</p>
  
  <p>I have only one list view (Ed. "player")</p>
  
  <p>My requirement is to move up and down in the same player list</p>
  
  <p>Please find the code i have used</p>
  
  <p>(Not: I am using jdk 1.7 with default javafx)</p>
  
  <p>Example:(player = listView)</p>
  
  <pre><code>listView.setOnDragDetected(new EventHandler&lt;MouseEvent&gt;() {
  
          @Override
          public void handle(MouseEvent event) {
  
              Dragboard dragBoard = listView.startDragAndDrop(TransferMode.MOVE);
  
              ClipboardContent content = new ClipboardContent();
  
              content.putString(listView.getSelectionModel().getSelectedItem().getValue());
  
              dragBoard.setContent(content);
  
          }
      });
  
      listView.setOnDragDone(new EventHandler&lt;DragEvent&gt;() {
          @Override
          public void handle(DragEvent dragEvent) {
              System.out.println("setOnDragDone left");
  
          }
      });
  
      listView.setOnDragEntered(new EventHandler&lt;DragEvent&gt;() {
          @Override
          public void handle(DragEvent dragEvent) {
              System.out.println("setOnDragEntered left");
  
          }
      });
  
      listView.setOnDragExited(new EventHandler&lt;DragEvent&gt;() {
          @Override
          public void handle(DragEvent dragEvent) {
              System.out.println("setOnDragExited left");
  
              listView.setBlendMode(null);
          }
      });
  
      listView.setOnDragOver(new EventHandler&lt;DragEvent&gt;() {
          @Override
          public void handle(DragEvent dragEvent) {
              System.out.println("setOnDragOver left");
  
              dragEvent.acceptTransferModes(TransferMode.MOVE);
          }
      });
  
      listView.setOnDragDropped(new EventHandler&lt;DragEvent&gt;() {
          @Override
          public void handle(DragEvent dragEvent) {
  
                  String context = dragEvent.getDragboard().getString();
  
  
                  dragEvent.setDropCompleted(true);
              }
  
          }
      });
  </code></pre>
  
  <p>I am new to javafx</p>
  
  <p>Would you please help on this regard</p>