481 e.printStackTrace();
482 currentDA = DnDConstants.ACTION_NONE;
483 }
484 } else {
485 currentDA = DnDConstants.ACTION_NONE;
486 }
487 }
488
489 /**
490 * upcall to handle the Drop message
491 */
492
493 private void handleDropMessage(final Component component,
494 final int x, final int y,
495 final int dropAction, final int actions,
496 final long[] formats,
497 final long nativeCtxt) {
498 postDropTargetEvent(component, x, y, dropAction, actions,
499 formats, nativeCtxt,
500 SunDropTargetEvent.MOUSE_DROPPED,
501 SunDropTargetContextPeer.DISPATCH_SYNC);
502 }
503
504 /**
505 *
506 */
507
508 protected void processDropMessage(SunDropTargetEvent event) {
509 Component c = (Component)event.getSource();
510 Point hots = event.getPoint();
511 DropTarget dt = c.getDropTarget();
512
513 dropStatus = STATUS_WAIT; // drop pending ACK
514 dropComplete = false;
515
516 if (c.isShowing() && dt != null && dt.isActive()) {
517 DropTargetContext dtc = dt.getDropTargetContext();
518
519 currentDT = dt;
520
521 if (currentDTC != null) {
|
481 e.printStackTrace();
482 currentDA = DnDConstants.ACTION_NONE;
483 }
484 } else {
485 currentDA = DnDConstants.ACTION_NONE;
486 }
487 }
488
489 /**
490 * upcall to handle the Drop message
491 */
492
493 private void handleDropMessage(final Component component,
494 final int x, final int y,
495 final int dropAction, final int actions,
496 final long[] formats,
497 final long nativeCtxt) {
498 postDropTargetEvent(component, x, y, dropAction, actions,
499 formats, nativeCtxt,
500 SunDropTargetEvent.MOUSE_DROPPED,
501 !SunDropTargetContextPeer.DISPATCH_SYNC);
502 }
503
504 /**
505 *
506 */
507
508 protected void processDropMessage(SunDropTargetEvent event) {
509 Component c = (Component)event.getSource();
510 Point hots = event.getPoint();
511 DropTarget dt = c.getDropTarget();
512
513 dropStatus = STATUS_WAIT; // drop pending ACK
514 dropComplete = false;
515
516 if (c.isShowing() && dt != null && dt.isActive()) {
517 DropTargetContext dtc = dt.getDropTargetContext();
518
519 currentDT = dt;
520
521 if (currentDTC != null) {
|