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

Insertion in JTextArea

 
P Jain
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
I have a JTextArea which has some strings(each string in new line).
I clicks at some location in JTextArea after this I click one Button.I want to insert a text by button click on the next line of the location where I last click the mouse(in JTextArea).

lets the contents of JTextArea is

Cricket
FootBall
Tennis

when I click on the line of FootBall and then clicks on button then text "Text" should be inserted as

Cricket
FootBall
Text
Tennis


How I can do that.
 
Craig Wood
Ranch Hand
Posts: 1535
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
 
P Jain
Ranch Hand
Posts: 52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi!
Thanks its working.................
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic