DataFlavor df=new DataFlavor(PatchEdit.getDriver(pat.deviceNum,pat.driverNum).getClass(),pat.toString());
DataFlavor df=new DataFlavor(pat.getDriver().getClass(),pat.toString());
    public void drop(DropTargetDropEvent event) {   //     System.out.println("DNDLibraryTable drop");            try {//            Transferable transferable = event.getTransferable();            Patch pat=(Patch)((AbstractPatchListModel)getModel()).getPatchAt(this.rowAtPoint(event.getLocation()));                DataFlavor df=new DataFlavor(PatchEdit.getDriver(pat.deviceNum,pat.driverNum).getClass(),pat.toString());//            if (transferable.isDataFlavorSupported(df)) {                System.out.println ("IsSupported");                Patch so=(Patch)event.getTransferable().getTransferData(df);                so.ChooseDriver(); // Because the driverNum is transient in Patch                //System.out.println(so.getType()+" "+so.getName());                event.acceptDrop(DnDConstants.ACTION_COPY_OR_MOVE);                Point p=event.getLocation();                //System.out.println ("Zieltabelle Zeile: "+this.rowAtPoint (p));//                ((PatchListModel)getModel()).setPatchAt(so,this.rowAtPoint(p));                ((AbstractPatchListModel)getModel()).addPatch(so);                /*            String s = (String)transferable.getTransferData ( DataFlavor.stringFlavor);            addElement( s ); */                event.getDropTargetContext().dropComplete(true);                event.dropComplete(true);//            }//            else {                //System.out.println (transferable.toString ()+" "+df.getMimeType ());                //System.out.println ("DNDLibraryTable:rejectDrop");//                event.rejectDrop();//            }            }        catch (IOException exception) {            ErrorMsg.reportError("Error", "IO Exception",exception);    //        exception.printStackTrace ();      //      System.err.println ( "Exception" + exception.getMessage ());            event.rejectDrop();        }        catch (UnsupportedFlavorException ufException ) {            ErrorMsg.reportError("Error", "Unsupported Dnd Flavor",ufException);           // ufException.printStackTrace ();           // System.err.println ( "Exception" + ufException.getMessage ());            event.rejectDrop();        }    }