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

Error in the documentation of DropTargetDragEvent.acceptDrag(int)

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 1.4.0
    • 1.3.0
    • docs
    • beta
    • generic
    • generic



      Name: rmT116609 Date: 02/28/2001


      $ java -version
      java version "1.3.0"
      Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.0-C)
      Java HotSpot(TM) Client VM (build 1.3.0-C, mixed mode)



      The documentation seems to be in error.

      http://java.sun.com/j2se/1.3/docs/api/java/awt/dnd/DropTargetDragEvent.html#acceptDrag(int)

      I believe the "dragActionChanged" in the following paragraph should say
      "dropActionChanged" .

      acceptDrag(int dragOperation)
                    Accept the drag This method should be called from a
                   DropTargetListeners dragEnter(), dragOver() and dragActionChanged()
                   methods if the implementation wishes to accept an operation from
      the
                   srcActions other than the one selected by the user as represented
      by the
                   dropAction.
      (Review ID: 117816)
      ======================================================================

            sharonz Sharon Zakhour (Inactive)
            rmandalasunw Ranjith Mandala (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: