How to find text and scroll to string

Hi!
I have multiline text with long strings (for example, text in scrollable Label). How to find text and scroll (or scroll and select this string) to found string, scroll to next string, etc?

// my content must be preformatted, scrolling should be horizontal and vertical
// I can’t use TextField and method setSelectionRange, because scrolling don’t work in FF and Opera -(

There is no special support for this in the standard text area component, Vaadin sets the selection range but leaves it up to the browser to decide how to scroll it visible (or not).

You would need to extend the client side implementation yourself. It might be necessary to do some browser specific handling to make setting the selection cause the scrolling to behave the way you want.