Java Scrolling with the More Logical ScrollBar
I have an array of JTextPanes inside JScrollPanes. All those components I
mentioned are inside a JPanel inside a JScrollPane.
At the start of the program, none of the JTextPanes have any text, so the
scrollbars for them are not visible. The scrollbars for the JPanel are
visible, because I have a lot of components in it.
My issue is that if the cursor is over one of the JTextPanes and I try to
scroll, nothing happens because the computer thinks I want to scroll with
the JTextPane's scrollbars. What I would like to happen is for the
computer to realize that I'm trying to scroll with the JPanel's scrollbar.
Is there any way I could accomplish this?
Thanks!
No comments:
Post a Comment