public void dragDropEnd(DragSourceDropEvent e) {   
        //getDropSuccess()对应DropTargetListener的drop()方法调用dropcomplete()时指目标指定的值   
        //getDropAction()对应DropTargetListener的drop()方法调用acceptDrop()时指定的操作   
        if (!e.getDropSuccess()||e.getDropAction()!= DnDConstants.ACTION_MOVE) {   
            return;   
        }   
  
        DragSourceContext context = e.getDragSourceContext();   
        Object comp = context.getComponent();   
        if (comp==null||!(comp instanceof JTree)) {   
            return ;   
        }   
        DefaultMutableTreeNode dragTreeNode = getDragTreeNode();   
           
        if (dragTreeNode!=null) {   
            ((DefaultTreeModel) tree.getModel()).removeNodeFromParent(dragTreeNode);   
            //设置拖动的树节点为空   
            setDragTreeNode(null);   
        }   
  
    }