Hi all: How can i make the scrollbar scroll back to the top??
posted 14 years ago
If you are working with scrollbars alone, use setValue() on JScrollBar. If the scrollbar you are saying is the scrollbar of JScrollPane and any component is added to JScrollPane, use scrollRectToVisible() on the Component. This method is from the JComponent class.