> 1. How do I set the scroll bar's position manually, via code.
get the scrollbar from the scrollPane and
scrollBar.setValue(someIntValue);
but this has always been a bit wonky
a lot depends on what the maximum value is (and, if I remember correctly, this 'maximum' can change)
an alternative is to get the scrollPane's viewport and
viewport.scrollRectToVisible(someRectangle);
where someRectangle could be (e.g.) textfield.getBounds()
> 2. How do I call a method from a keystroke?
keyBindings
http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html