Search code examples
javaswingjtextarea

printing text in java textarea automatically from other textarea


I'm developing a small application using Java Swing. It consist of 2 textareas. While typing the text in one textarea I want the same text to be copied on other textarea. I've used threads: thread1 for Jframe and thread2 which access the text and setText in other textarea.. but text is not displaying.


Solution

  • Have you used any action listener to detect when the user types in the text box?