• Post Reply Bookmark Topic Watch Topic
  • New Topic

JScrollpane scrolling speed

 
Steve Wood
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi guys,

I've been using scroll panes for a while and one of the most annoying things is the rate at which it scrolls when you use the provided arrows.

Basically, is there a way to speed up the scrolling when using the arrows as opposed to grabbing the bar. It's like watching paint dry!

Any help is much appreciated.

Cheers,

Steve
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
scrollPane.getVerticalScrollBar().setUnitIncrement(100);

where 100 is the value you set
 
Steve Wood
Ranch Hand
Posts: 137
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Michael,

That's worked perfectly!

Steve
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!