getText « JTextArea « Java Swing Q&A





1. Java - Can't get getText in jTextArea to work properly    stackoverflow.com

I have a seperate JFrame where there is a text box (jTextArea) that takes numbers as inputs, each separated with a new line. Upon closing the JFrame with the text box, ...

2. call to JTextArea.getText() is not getting current text    coderanch.com

In the following code there is a JTextArea with an initial string. When the user changes the text in the JTextArea and clicks on update on the menu bar, class2.update() is called which in turn calls a class1.getText() method which should return the text in the JTextArea. The problem I am having is that the inital string is always returned. For ...