# Scroll bar is slow for repeaters

**URL:** <https://forum.inductiveautomation.com/t/scroll-bar-is-slow-for-repeaters/9724>\
**Category:** Ignition\
**Created:** [February 18, 2015, 4:27pm UTC](https://forum.inductiveautomation.com/t/scroll-bar-is-slow-for-repeaters/9724 "2015-02-18T16:27:59Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![matt.eaton](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matt.eaton/32/72046_2.png) [@matt.eaton](https://forum.inductiveautomation.com/u/matt.eaton)\
**Post date:** [February 18, 2015, 4:27pm UTC](https://forum.inductiveautomation.com/t/scroll-bar-is-slow-for-repeaters/9724/1 "2015-02-18T16:27:59Z")

</div>

So there’s a post from 2012 regarding this exact issue.  
But here I am in 2015 with the same issue but for the scrollbar on my template repeater.

The final suggestion was:

[code]  
#increases scroll bar speed  
from javax.swing import SwingUtilities  
from javax.swing import JScrollPane

scrollPane = SwingUtilities.getAncestorOfClass(JScrollPane, event.source)

scrollPane.getVerticalScrollBar().setUnitIncrement(10)[/code]

and my implementation:

[code]#increases scroll bar speed  
from javax.swing import SwingUtilities  
from javax.swing import JScrollPane

scrollPane = SwingUtilities.getAncestorOfClass(JScrollPane, system.gui.getParentWindow(event).getComponentForPath(‘Root Container.action\_blocks’))

scrollPane.getVerticalScrollBar().setUnitIncrement(10000)[/code]

Obviously I’m missing something here.

---

<div class="post-metadata">

**Author:** ![jpark](https://avatars.discourse-cdn.com/v4/letter/j/a88e57/32.png) [@jpark](https://forum.inductiveautomation.com/u/jpark)\
**Post date:** [February 19, 2015, 7:48pm UTC](https://forum.inductiveautomation.com/t/scroll-bar-is-slow-for-repeaters/9724/2 "2015-02-19T19:48:18Z")

</div>

Try this:

[code]from javax.swing import SwingUtilities  
from javax.swing import JScrollPane

scrollPane = SwingUtilities.getAncestorOfClass(JScrollPane, event.source.parent.getComponent(‘Template Repeater’).getComponents()[1].getComponents()[2])

scrollPane.getVerticalScrollBar().setUnitIncrement(30) #scroll amount for wheel and arrows  
scrollPane.getVerticalScrollBar().setBlockIncrement(30) #scroll amount clicking on scrollbar itself

[/code]

---

<div class="post-metadata">

**Author:** ![nmudge](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/nmudge/32/3394_2.png) [@nmudge](https://forum.inductiveautomation.com/u/nmudge)\
**Post date:** [February 19, 2015, 7:54pm UTC](https://forum.inductiveautomation.com/t/scroll-bar-is-slow-for-repeaters/9724/3 "2015-02-19T19:54:48Z")

</div>

Hi Matt,

This code works:

```auto
repeater = event.source.parent.getComponent('Template Repeater')
jscrollPane = repeater.getComponents()[1]
jscrollPane.getVerticalScrollBar().setUnitIncrement(50)
```

It is just a matter of getting the right JScrollPane.  
Best,

---

<div class="post-metadata">

**Author:** ![matt.eaton](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/matt.eaton/32/72046_2.png) [@matt.eaton](https://forum.inductiveautomation.com/u/matt.eaton)\
**Post date:** [February 27, 2015, 7:47pm UTC](https://forum.inductiveautomation.com/t/scroll-bar-is-slow-for-repeaters/9724/4 "2015-02-27T19:47:21Z")

</div>

Perfecto! Thank you so much for this
