JScrollPane adjustmentListener and scrollRectToVisible
问题 I need to handle event from JScrollPane when user scrolls it. In here it is suggested to use addAdjustmentListener to either JViewport or Vertical/HorizontalScrollBar. Is there any difference, which method should I choose? I would like also to use scrollRectToVisible for the same JScrollPane , should I anticipate AdjustmentListener working for this method? Also I wonder whether scrollRectToVisible tries to do minimum scrolling to make required rectangular visible or it tries to make it