Source code:
applet_scrollbar.java
and
ImageCanvas.java