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();  

written by objects \\ tags: ,