Is it possible in Java to copy a file from the OS and paste it in a JTextField putting the full path of the copied file?
For example, i have the file “text.txt” on my desktop.
So i copy it with RightClick -> Copy
In the JFrame of my Java Application i focus into a JTextField and i use CTRL+V to paste.Then the application should paste the full path of copied file into the JTextField
You can use Java’s Clipboard Class. Here is an Example