Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- row.setOnDragDetected(event -> {
- if (!row.isEmpty()) {
- Dragboard db = row.startDragAndDrop(TransferMode.MOVE);
- db.setDragView(row.snapshot(null, null));
- ClipboardContent cc = new ClipboardContent();
- cc.put(SERIALIZED_MIME_TYPE, getSelectionModel().getSelectedIndices());
- db.setContent(cc);
- event.consume();
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement