• Post Reply Bookmark Topic Watch Topic
  • New Topic

How to copy a string variable to the clipboard?

 
Jon Hedge
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ,

I would like to know how I copy a string variable like for example : into the clipboard. The output of the code being "Java Code" written in a search browser.

Thanks in advance for your help.
 
Dave Tolls
Ranch Hand
Posts: 2281
24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can get the system clipboard via AWT's Toolkit class.

You might need to read around as to how you actually put stuff onto it, but that should give you a start.
 
Jon Hedge
Greenhorn
Posts: 6
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Based on your post I found the solution thanks.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!