event.rejectDrop ();
    public void drop (DropTargetDropEvent event)    {        System.out.println ("DNDLibraryTable drop");                try        {            Transferable transferable = event.getTransferable ();            Patch pat=(Patch)((PatchListModel)getModel ()).PatchList.get (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));/*            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 ();        }    }