making edit keys actualy edit?

Say I have a JTextArea and I insert some some string and then another string that contains some edit keys (like backspace). Is there a way to make it so that those edit keys do what they are supposed to without me parsing the string manually?

example:

string1="hello world!"

string2="<backspace>?"

insert string1

insert string2

result = "hello world?"

[400 byte] By [forumusera] at [2007-11-27 5:55:09]
# 1
Not that I know of.
bsampieria at 2007-7-12 15:50:28 > top of Java-index,Desktop,Core GUI APIs...
# 2
> without me parsing the string manually?No, you will need to parse the string manually, You can use a [url http://java.sun.com/docs/books/tutorial/uiswing/components/generaltext.html#filter]Document Filter[/url] to parse the incoming text and then execute your own custom
camickra at 2007-7-12 15:50:28 > top of Java-index,Desktop,Core GUI APIs...