File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Copy to RAM memory" Watch "Copy to RAM memory" New topic

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)

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
I agree. Here's the link:
subject: Copy to RAM memory
It's not a secret anymore!