On Fri, 5 Jun 2020 22:33:38 +0200, Mike Wey wrote:

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.

Yeah, it just moves down a tiny bit. I don't think macOS is very well tested with. Let me know if you come up with anything more.