This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
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)