File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes About Knob of JScrollPane.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "About Knob of JScrollPane.." Watch "About Knob of JScrollPane.." New topic

About Knob of JScrollPane..

tonia wang

Joined: Jun 10, 2003
Posts: 2
Hi All,
I have a problem about JScrollPane: how to do something when the scroll bar of JScrollPane is moved? For example,
public void mousePressed(MouseEvent e){
I've read the doc:
It says the scroll bar is called Knob. However, it does not says how to trigger the Knob when users move the Knob...
Appreciate for any help. Thanks a lot!
Best Regards,
[ June 11, 2003: Message edited by: tonia wang ]
Abhik Sarkar
Ranch Hand

Joined: Jun 14, 2003
Posts: 61
Hi Tonia,
How about...

Hope this helps!
I agree. Here's the link:
subject: About Knob of JScrollPane..
It's not a secret anymore!