How to access the selected file in your desktop

My project involves a Java program running in the background which is used to copy files that I have selected on the desktop or file explorer.

I have a slight problem. Suppose i have a file selected on my desktop or on a a windows folder. Is there anyway that I could determine what that selected file is using Java?

[330 byte] By [jjmonzona] at [2007-11-27 8:11:18]
# 1
Seems a complex feature, wouldnt be easier if the Java app uses his own file dialog explorer to get the file?
Xtremebcna at 2007-7-12 19:55:13 > top of Java-index,Desktop,Developing for the Desktop...