Hi all, i want to create TextEditor with track changes facility as in MSWORD 2003. ie. whenever i delete some text they do not be physically erased instead, the deleted text shud be displayed in some other color with strike out.. so plz help me its quite urgent.
You can define the key's action in your ActionListener actionPerformed method.
Give a man a fish, he'll eat for one day. Teach a man to fish, he'll drink all your beer.
Cheers, Jeff (SCJP 1.4, SCJD in progress, if you can call that progress...)
Joined: Nov 09, 2004
thanks for reply, But.... i have included the code in the key event. i also cosumed the backspace key. now i want to edit the document but its showing me the the error msg.. java.lang.IllegalStateException: Attempt to mutate in notification at javax.swing.text.AbstractDocument.writeLock(AbstractDocument.java:1336) at javax.swing.text.AbstractDocument.remove(AbstractDocument.java:569)
how can i overcome this problem.
Thanks in advance.....
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: how to redirect backspace key to some other function