@Override public void dragDropEnd(DragSourceDropEvent dsde){
  DragSourceContext dsc=dsde.getDragSourceContext();
  JComponent c=(JComponent)dsc.getComponent();
  DefaultDrawingViewTransferHandler th=(DefaultDrawingViewTransferHandler)c.getTransferHandler();
  if (dsde.getDropSuccess()) {
    th.exportDone(c,dsc.getTransferable(),dsde.getDropAction());
  }
 else {
    th.exportDone(c,dsc.getTransferable(),NONE);
  }
  c.setAutoscrolls(scrolls);
}

@ Override public void dragDropEnd ( DragSourceDropEvent dsde ) { DragSourceContext dsc = dsde . getDragSourceContext ( ) ; JComponent c = ( JComponent ) dsc . getComponent ( ) ; DefaultDrawingViewTransferHandler th = ( DefaultDrawingViewTransferHandler ) c . getTransferHandler ( ) ; if ( dsde . getDropSuccess ( ) ) { th . exportDone ( c , dsc . getTransferable ( ) , dsde . getDropAction ( ) ) ; } else { th . exportDone ( c , dsc . getTransferable ( ) , NONE ) ; } c . setAutoscrolls ( scrolls ) ; }
as the operation completes
