Java version 1.1 supports primitive control of the clipboard - the invisible chalkboard you use to transfer data between applications (or parts of the same application) with cut and paste. You can access what is in it, and put data into it. It looks more complicated than it really is since you have the data String, a Transferable object to contain it and the Clipboard object itself. Be thankful! It is three orders of magnitude simpler than the OLE (Object Linking & Embedding) that C++ programmers have to put up with. You don’t have to understand the following code to use it. Just clone and tune the following code. One catch. You can’t access the clipboard in an unsigned Applet. That is considered too big a security risk. Users can manually cut and paste to your TextAreas though and you get manipulate them with getText and setText.
A clipboard manager primarily lets you store more than one item in the clipboard. I have been using ClipMate since the the invention of the wheel, but it no longer is compatible with my Logitech mouse driver, Windows 7 and Opera. I am in the process of seeking out a replacement. Right now I am test driving Ditto. Promising features include ability to paste from other than the top of stack
This page is posted |
http://mindprod.com/jgloss/clipboard.html | |
Optional Replicator mirror
|
J:\mindprod\jgloss\clipboard.html | |
Please read the feedback from other visitors,
or send your own feedback about the site. Contact Roedy. Please feel free to link to this page without explicit permission. | ||
Canadian
Mind
Products
IP:[65.110.21.43] Your face IP:[3.144.31.86] |
| |
Feedback |
You are visitor number | |