if ( selR != -1 ) { Patch sing =((PatchListModel) getModel ()).getPatchAt (selR);
if ( selR != -1 ) { Patch sing =((AbstractPatchListModel) getModel()).getPatchAt(selR);
    public void dragGestureRecognized ( DragGestureEvent event)    {       Iterator iter;        Object obj=new Object();        if (((MouseEvent)(event.getTriggerEvent())).isPopupTrigger()) return;        // Workaround for Java-Bug ID 4337114        // Dnd doesn't work with JInternalFrame        iter=event.iterator();        while (iter.hasNext())        {           obj=iter.next();            System.out.println(obj.toString());        }                if (((MouseEvent)obj).getID()==MouseEvent.MOUSE_EXITED) return;        int selR = getSelectedRow ();        int selC = getSelectedColumn ();                   if ( selR != -1 )        {            Patch sing =((PatchListModel) getModel ()).getPatchAt (selR);            // as the name suggests, starts the dragging            dragSource.startDrag (event, DragSource.DefaultCopyDrop, sing, this);        } else        {            //System.out.println ( "nothing was selected");        }    }