I need to scroll a JScrollPane to the bottom. The JScrollPane contains a JPanel, which contains a number of JLabels.
To scroll to the top, I just do:
scrollPane.getViewport().setViewPosition(new Point(0,0));
But how do I scroll exactly to the very bottom? (Too far and it jitters)
1 Answer