Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-6517569

acceptDrag() does not work if it is invoked from the DropTargetListeners.dragOver() method

XMLWordPrintable

    • generic
    • windows_xp

      The specification for java.awt.dnd.DropTargetDragEvent.acceptDrag() says that the method should be invoked if

      "the implementation wishes to accept an operation from the srcActions other than the one selected by the user as represented by the dropAction."

      The same specification says that

      "This method should be called from a DropTargetListeners dragEnter, dragOver, and dropActionChanged methods"

      In fact, if I invoke DropTargetDragEvent.acceptDrag() from DropTargetListeners.dragOver(DropTargetDragEvent dtde) method, the pointer is not changed to "accept" cursor but stays "no drop" cursor.

      This behavior is reproducible at least on Windows platform.

            ssadetsky Semyon Sadetsky (Inactive)
            denis Denis Fokin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: