Logo 
Search:

Java Forum

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds

JTextField - how to auto scroll to end?

  Asked By: Craig    Date: Feb 07    Category: Java    Views: 1788
  

How to auto scroll to the end after textfield.setText() is called?

tf.setText(mystring);
tf.setCaret(tf.getString().length());

However it is not very consistent, sometimes it scroll to second last
line.

Share: 

 

No Answers Found. Be the First, To Post Answer.

 
Didn't find what you were looking for? Find more on JTextField - how to auto scroll to end? Or get search suggestion and latest updates.




Tagged: