Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Detect copying file  RSS feed

 
Udaya Wijenayake
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When i copied a file in my system (using ctrl+c or right click) i want to detect its file name using a Java code. Is there any supporting class/method to do that ??
 
Rob Spoor
Sheriff
Posts: 21088
85
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out java.awt.datatransfer.Clipboard. In short:
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!