# Control scroll bar of a template repeater

**URL:** <https://forum.inductiveautomation.com/t/control-scroll-bar-of-a-template-repeater/21040>\
**Category:** Ignition\
**Created:** [November 23, 2018, 8:01pm UTC](https://forum.inductiveautomation.com/t/control-scroll-bar-of-a-template-repeater/21040 "2018-11-23T20:01:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [November 23, 2018, 8:01pm UTC](https://forum.inductiveautomation.com/t/control-scroll-bar-of-a-template-repeater/21040/1 "2018-11-23T20:01:03Z")

</div>

I’m looking a way to force the position of the scroll bar of a template repeater.  
I would like to have button to go to start, 1/4, 1/2, 3/4, end position for example

---

<div class="post-metadata">

**Author:** ![mazeyrat](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/mazeyrat/32/10955_2.png) [@mazeyrat](https://forum.inductiveautomation.com/u/mazeyrat)\
**Post date:** [November 24, 2018, 10:43am UTC](https://forum.inductiveautomation.com/t/control-scroll-bar-of-a-template-repeater/21040/2 "2018-11-24T10:43:23Z")

</div>

I figure out to achieve that with

> [@Scroll bar is slow for repeaters](http://forum.inductiveautomation.com/t/scroll-bar-is-slow-for-repeaters/9724/2):
>
> 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]
