Rob Camick wrote: . . .
Check out the JScrollBar API. Look for methods that start with "add...".
. . .
Also find a copy of Thinking in Java by Bruce Eckel. It used to be possible to download a PDF of the 3rd edition free of charge. Try here. There is a little program shown which uses reflection to find and list all the methods in a particular class which are called addXXXListener.
no wonder he is so sad, he hasn't seen this tiny ad:
how do I do my own kindle-like thing - without amazon