• Post Reply Bookmark Topic Watch Topic
  • New Topic

Which event is generated when a scrollbar is update  RSS feed

 
V K Gupta
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Which event is generated when a scrollbar is update?
***Please I need quick answer for above question *****
 
Rob Camick
Ranch Foreman
Posts: 2822
15
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If you want to listen for events then you need to add a listener to the scrollbar.

Check out the JScrollBar API. Look for methods that start with "add...". One of these methods will add the appropriate listener.

 
Campbell Ritchie
Marshal
Posts: 56223
171
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rob Camick wrote: . . .
Check out the JScrollBar API. Look for methods that start with "add...".
. . .
Also find a copy of Thinking in Java by Bruce Eckel. It used to be possible to download a PDF of the 3rd edition free of charge. Try here. There is a little program shown which uses reflection to find and list all the methods in a particular class which are called addXXXListener.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!