jQuery in Action, 3rd edition
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 Introducing JavaFX 8 Programming this week in the JavaFX forum!
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: http://aspose.com/file-tools
subject: Copy to RAM memory
It's not a secret anymore!