August 23rd, 1999, 08:08 PM
Hi,
I've 2 panels in my frame.I want to attach scrollbars to one of my panels.Is it possible?.
Thanks in advance.
unicman
August 24th, 1999, 12:09 AM
Yep! I had done that. I wonder if u like to do the same.
What I had done is...
1. Put both panels in scrollpanes
2. Make verticle (I wanted to syncronize the panel scrolling vertically) scrollbar of one scrollpane invisible
3. I created a listener for scrollbar which will accept instance of another scrollbar and when event comes sets the value of other scrollbar correspondingly
4. Then I attached this listener to the visible verticle scrollbar of the scrollpane and gave it instance of invisible verticle scrollbar of other scrollpane.
And it worked!
- UnicMan