-
Type:
Bug
-
Resolution: Fixed
-
Priority:
P4
-
Affects Version/s: 5.0
-
Component/s: client-libs
-
b88
-
x86
-
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