-
Type:
Bug
-
Status: Resolved
-
Priority:
P4
-
Resolution: Fixed
-
Affects Version/s: 5.0
-
Fix Version/s: 6
-
Component/s: client-libs
-
Labels:
-
Subcomponent:
-
Resolved In Build:b88
-
CPU:x86
-
OS:windows_xp
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
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