예제 #1
0
 public void dragDropEnd(DragSourceDropEvent dsde) {
   super.dragDropEnd(dsde);
   if (dsde.getDropSuccess()) {
     if (DEBUG) System.out.println("Drop successful"); // NOI18N
   } else {
     if (DEBUG) System.out.println("Drop unsuccessful"); // NOI18N		
   }
 }
 // drag and drop between 2 different windows, the FileTransferDialog only know about the drop
 // TableModel not the drag TableModel for that case I need to remove the file from here
 @Override
 public void dragDropEnd(DragSourceDropEvent dsde) {
   //        boolean dropSuccess = dsde.getDropSuccess();
   //        if(dropSuccess)
   //        {
   //            if(dsde.getDropAction() == FileTransferHandler.MOVE)
   //            {
   //                for(MyFile file : files)
   //                {
   //                    updateModel(file, FileTransferDialog.MODEL_ACTION_REMOVE);
   //                }
   //            }
   //        }
   super.dragDropEnd(dsde);
 }