JDK-4915992 : Keyboard COPY from JFileChooser behaves as a MOVE
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.0
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • OS: windows_nt
  • CPU: x86
  • Submitted: 2003-09-02
  • Updated: 2017-05-23
Description
JFileChooser was designed to allow copying (through the keyboard or by dragging) of files. A bug exists such that keyboard COPY behaves like a MOVE. To reproduce:

- Open a JFileChooser
- Select a file or folder in the JFileChooser
- Hit CTRL-C to copy the file/folder
- Browse your filesystem (using Windows Explorer on Windows)
- Hit CTRL-V to paste the file/folder somewhere in the file system

The file/folder is pasted. Now go back and browse the folder where the file used to be and notice that it is gone. It has been MOVED instead of copied.

Note: This bug was found on Windows NT SP6. It is unknown how it behaves on other platforms.