}
// ScrollBarValueListener methods
public void valueChanged(ScrollBar scrollBar, int previousValue) {
ScrollPane scrollPane = (ScrollPane)getComponent();
int value = scrollBar.getValue();
if (scrollBar == horizontalScrollBar) {
scrollPane.setScrollLeft(value);
} else {
scrollPane.setScrollTop(value);
}
}