aspose file tools*
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
Author

Add text to textarea

karlijn de winter
Greenhorn

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:
if(e.getSource()==basis)
textarea.setText("<html><head></head><body");
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?
Regards,
Manfred.
karlijn de winter
Greenhorn

Joined: Jun 09, 2002
Posts: 2
Thank you!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Add text to textarea