I want my JTextArea to resize itself (expand vertically) when the last line (that the text area's height can offer) is reached and the user wants to start a new line. You know, like the textbox in MSWord.
I have an idea to use getLineCount()
and determine (if necessary) the new height of the JTextArea. Do you have, or know of better approaches for implementing this?