Oct
01
|
The JViewport of the JScrollPane provides a method to return the location of top left point showing in the scroll pane.
JViewport viewport = myScrollPane.getViewport(); Point scrolledTo = viewport.getViewPosition();
Leave a Reply
You must be logged in to post a comment.