October 13th, 2006, 03:27 PM
Interact with System clipboard from applet.
This may not even be possible, but I'm not sure. I am trying to make an app that will be used to view documents online. It should be possible for people to copy the text from these documents to another program if they want, but I need to be able to control what they copy and append some information to the text (a citation really)
For example, say one were viewing this post and wanted to copy something out of it. The app should allow the copy, but add a citation after it so when pasted into the other program it looks like:
"This may not even be possible, but I'm not sure." |
Interact with System clipboard from applet. http://forums.devshed.com/... p1 13 Oct 2006
To do that I need to
1) Be able to set the system clipboard, which I can't do from an applet due to security restrictions (works as an app)
2) Intercept ctrl+c to run my own copy function which can create and append the citation text.
Is this possible at all using java, or would I be forced into doing something with activex or something else?
I'm thinking the first point should be possible, though I may need to sign the applet or something, which I don't know how to do and the info I have been able to find online seems to all be outdated or doesn't work anyway.
Recycle your old CD's, don't just trash them
If I helped out out, show some love with some reputation, or tip with Bitcoins to 1N645HfYf63UbcvxajLKiSKpYHAq2Zxud