On 05-06-2020 05:38, Joel Christensen wrote:

You would probably do something like this:

Adjustment adj = scroledWindow.getVadjustment();
adj.setValue(adj.getUpper() - adj.getPageSize());
scrolledWindow.setVadjustment(adj);

To scroll to the bottom of the window.

Actually, it doesn't work when text is wrapped, (not to do with the size of the window view).

Strange, you would think the size of the textview would determine the
range of the scrollbar. And while the size of the textview changes
depending on if the text is warped or not that shouldn't matter to the
container it's in.