• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Copy to RAM memory

 
Peter Primrose
Ranch Hand
Posts: 755
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 8791
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Look for Clipboard in the JavaDoc. I think it will do what you need.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic