And if you don't want the clipboard to be involved, you can still use a similar technique using drag-and-drop. Google for java drag and drop tutorial and check out the Oracle tutorial. Based on the code you find there you should be able to do some experimenting and come up with a component where you can drop a file which was dragged from (e.g.) Windows Explorer.
Joined: Feb 05, 2013
thank you very much.
Randall Twede tested the code and served me served me.
instead of imageFlavor I tested with javaFileListFlavor.
Paul Clapham thank you very much for your suggestion, I'll try, I think that is what I was looking.
subject: alternative to JFileChooser (panel similar to "drop the file here")