File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Copy to RAM memory Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Copy to RAM memory" Watch "Copy to RAM memory" New topic
Author

Copy to RAM memory

Peter Primrose
Ranch Hand

Joined: Sep 10, 2004
Posts: 755
Hi there,

I have a JtextField and a button (COPY). The button suppose to copy the info in the jtextfield so next time the user will press ctrl-v (paste) the info will paste there.

how can i Implement it with a button (regardless of the option where the user can press ctrl-c)

thanks
Stan James
(instanceof Sidekick)
Ranch Hand

Joined: Jan 29, 2003
Posts: 8791
Look for Clipboard in the JavaDoc. I think it will do what you need.


A good question is never answered. It is not a bolt to be tightened into place but a seed to be planted and to bear more seed toward the hope of greening the landscape of the idea. John Ciardi
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Copy to RAM memory
 
Similar Threads
special chars generated during paste/copy
Exception in Main
about Devaka's simulator
Able to Copy Text from Text Boxes(JTextfields) in Linux/Solaris
Need to restrict ctrl+c, ctrl+v, ctrl+x