KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I have a JScrollPane which contains a JPanel which has large height, This large JPanel contain more Jpanels in it as in the image. Some of those panels contains a JLabel which I used to show titles. At the top, there are JLabels which have numbers matching the title numbers in the title labels. What I need to do is when I click a label from the top label list the JScrollBar should scroll to the position where that label is placed. I don't know whether this is possible or not, but if anyone know how to scroll to a specific position in a JScrollPane please assist me.
Tags (comma-separated)
Save Edits
Cancel