File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Applets and the fly likes Add text to textarea Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Applets
Bookmark "Add text to textarea" Watch "Add text to textarea" New topic

Add text to textarea

karlijn de winter

Joined: Jun 09, 2002
Posts: 2
Hello everybody, i've just started learning java programming. I am making a HTML editor, when you click on a button the HTML code (for exapmle <p> is added in the textarea. When i use:
the HTML source appears in the textarea, but i can't click on another button (the source of the second button i click on doesnt appear). Can i use something else than setText? (something what makes me allow to click on an unlimited number of buttons and every button adds a source code)
Thank you very much!! Grts Karlijn

greets, Karlijn
Manfred Leonhardt
Ranch Hand

Joined: Jan 09, 2001
Posts: 1492
Hi Karlijn,
How about insert method?
karlijn de winter

Joined: Jun 09, 2002
Posts: 2
Thank you!
I agree. Here's the link:
subject: Add text to textarea
jQuery in Action, 3rd edition