System.out.println("importData: I/O exception");
log.warn("importData: I/O exception");
         public void drop(DropTargetDropEvent dtde) {            Transferable tr = dtde.getTransferable();            dtde.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE);            DataFlavor[] dfs = dtde.getCurrentDataFlavors();            if(tr.isDataFlavorSupported(DataFlavor.javaFileListFlavor)) {               try {                  System.out.println("dtde drop it2 ");                  java.util.List fileList =                     (java.util.List)tr.getTransferData(DataFlavor.javaFileListFlavor);                     // implementation for when we are able to process a list                     //   of files.//                   Iterator iterator = fileList.iterator();//                   if (iterator.hasNext()) {//                      File file = (File)iterator.next();//                   }                  java.io.File file = (java.io.File)fileList.get(0);                  System.out.println(file.toString());                  dtde.dropComplete(true);                  doTransfer(file);                  return;               }               catch (UnsupportedFlavorException ufe) {                  System.out.println("importData: unsupported data flavor");               }               catch (java.io.IOException ieo) {                  System.out.println("importData: I/O exception");               }               catch (Exception ex) {                  System.out.println(ex.getMessage());               }               finally {                  dtde.dropComplete(false);               }            }         }