This week's book giveaway is in the Clojure forum.
We're giving away four copies of Clojure in Action and have Amit Rathore and Francis Avila on-line!
See this thread for details.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

cut copy and paste functions

 
Burt Reynolds
Greenhorn
Posts: 2
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do I write code that will use the clip board to cut copy and paste text into or from a input textArea?
 
Vikalp Setya
Greenhorn
Posts: 18
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I think every swing text components supports copy/paste/cut to and from clipboard. There's cut(), copy() and paste() methods in JTextArea. For corresponding Action classes, see DefaultEditorKit.cutAction, DefaultEditorKit.copy action. Text cut/copied from textfield goes to the clipboard automatically.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic