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

javax.swing.TransferHandler getCopyAction and getPasteAction has wrong comment

    Details

    • Subcomponent:
    • Resolved In Build:
      b88
    • CPU:
      x86
    • OS:
      windows_xp

      Description

      A DESCRIPTION OF THE PROBLEM :
      getCopyAction
      public static Action getCopyAction()Returns an Action that behaves like a 'copy' operation. That is, this will invoke exportToClipboard with a COPY argument on the TransferHandler associated with the JComponent that is the source of the ActionEvent.

      Returns:
      cut Action

      Why returns is cut Action but not copy Action?
      GetPasteAction is in the same situation.


      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      getCopyAction
      public static Action getCopyAction()Returns an Action that behaves like a 'copy' operation. That is, this will invoke exportToClipboard with a COPY argument on the TransferHandler associated with the JComponent that is the source of the ActionEvent.

      Returns:
      copy Action
      ACTUAL -
      getCopyAction
      public static Action getCopyAction()Returns an Action that behaves like a 'copy' operation. That is, this will invoke exportToClipboard with a COPY argument on the TransferHandler associated with the JComponent that is the source of the ActionEvent.

      Returns:
      cut Action

      URL OF FAULTY DOCUMENTATION :
      http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/TransferHandler.html

        Attachments

          Activity

            People

            • Assignee:
              shickeysunw Shannon Hickey (Inactive)
              Reporter:
              rmandalasunw Ranjith Mandala (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: