How to scroll text in a TextArea to a given line number & position? The difficulty is that to scroll you need to know the exact x,y coordinate whereas TextArea only exposes the positionToRectangle() function which seems to be inherited from TextField which is single-line only.