Click here to Skip to main content
15,885,182 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
how can i know that some thing has been change in jtextarea using java?
Posted

Add a KeyListener to the JTextArea:

Java Tutorials - How to Write a Key Listener[^]

That one reacts each time a key is used.
You could also use a ChangeListener - that one reacts on leaving the JTextArea. Depends on what you want to do(?)
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900