Thread
:
How to always show the last line in my JTextArea?
View Single Post
#
2
(
permalink
)
05-26-2007, 02:01 PM
FaRuK
Member
Join Date: May 2007
Posts: 7
You can use the following code segment:
Code:
JTextArea ta; String s = ta.getText(); int pos = s.length(); ta.setCaretPosition(pos);
You can call this whever a change event occured in your text area.
FaRuK
View Public Profile
Send a private message to FaRuK
Find all posts by FaRuK