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();
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment