Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Hamish Jones   on Feb 11 In Java Category.

  
Question Answered By: Edfu Massri   on Feb 11

On Question 2:
To keep the editorpane scrolled to the bottom, use the method
setCaretPosition to the length of the text in it.

public void setCaretPosition(int position)

editorpane.setCaretPosition(editorpane.getText().length());

Share: