Forums Register Login

How to copy a string variable to the clipboard?

+Pie Number of slices to send: Send
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.
+Pie Number of slices to send: Send
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.
1
+Pie Number of slices to send: Send
Based on your post I found the solution thanks.
It looks like it's time for me to write you a reality check! Or maybe a tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 398 times.
Similar Threads
Need help with clipboard.
copy selected data from JTable's cell to clipboard
Populating fields on a webpage based on the remote webpage data
How to copy a image to clipboard in FIREFOX browser using javascript?
How to get files copied to office clipboard?
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 18, 2024 23:20:43.