dndNodes.setParent(tree);
dndNodes.setNodes(nodes);
//Select the appropriate cursor;
Cursor cursor = DragSource.DefaultCopyNoDrop;
// begin the drag
dragSource.startDrag(e, cursor, dndNodes, dragSourceListener);
}
}
};
dragSource.createDefaultDragGestureRecognizer(tree, //DragSource
DnDConstants.ACTION_COPY_OR_MOVE, //specifies valid actions