Advertisement
Guest User

Untitled

a guest
Aug 24th, 2016
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. row.setOnDragDetected(event -> {
  2. if (!row.isEmpty()) {
  3. Dragboard db = row.startDragAndDrop(TransferMode.MOVE);
  4. db.setDragView(row.snapshot(null, null));
  5. ClipboardContent cc = new ClipboardContent();
  6. cc.put(SERIALIZED_MIME_TYPE, getSelectionModel().getSelectedIndices());
  7. db.setContent(cc);
  8. event.consume();
  9. }
  10. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement