# Power Table Marquee?

**URL:** <https://forum.inductiveautomation.com/t/power-table-marquee/17505>\
**Category:** Ignition\
**Tags:** ignition78, ignition79, scripting\
**Created:** [March 26, 2018, 9:55pm UTC](https://forum.inductiveautomation.com/t/power-table-marquee/17505 "2018-03-26T21:55:00Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![robert1](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@robert1](https://forum.inductiveautomation.com/u/robert1)\
**Post date:** [March 26, 2018, 9:55pm UTC](https://forum.inductiveautomation.com/t/power-table-marquee/17505/1 "2018-03-26T21:55:00Z")

</div>

Hello-

Can someone help me with adding a ‘marquee’ function to a power table? I assume this is possible because the alarm table can do this. How would I go about scripting in a marquee, and can I change scroll speed variables, etc? Thanks!

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [March 27, 2018, 2:23pm UTC](https://forum.inductiveautomation.com/t/power-table-marquee/17505/2 "2018-03-27T14:23:31Z")

</div>

You would have to do this on the Java side of things I'm afraid.

You should be able to get the JScrollPane from the table, and after that you can set the visible rectangle on that table.

F.e. see this post on how to get the scroll pane of some elements

> [@Scroll bar is slow](http://forum.inductiveautomation.com/t/scroll-bar-is-slow/5043/7):
>
> Template Repeater 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 Template Canvas from javax.swing import SwingUtilities f…

---

<div class="post-metadata">

**Author:** ![robert1](https://avatars.discourse-cdn.com/v4/letter/r/48db29/32.png) [@robert1](https://forum.inductiveautomation.com/u/robert1)\
**Post date:** [March 27, 2018, 7:47pm UTC](https://forum.inductiveautomation.com/t/power-table-marquee/17505/3 "2018-03-27T19:47:38Z")

</div>

alright! Thanks for the start.

I can see how to use that information to access the scroll bar (made a button with script from your linked post and it works fine), but how would I go about making the bar auto-scroll? Is there any built in function for that or I would have to build something from scratch? Sorry, I assumed there would already be something baked in since some other components have a similar marquee feature.

---

<div class="post-metadata">

**Author:** ![Sanderd17](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/sanderd17/32/8735_2.png) [@Sanderd17](https://forum.inductiveautomation.com/u/Sanderd17)\
**Post date:** [March 28, 2018, 5:54am UTC](https://forum.inductiveautomation.com/t/power-table-marquee/17505/4 "2018-03-28T05:54:44Z")

</div>

You’ll have to build it from scratch, marquees aren’t as popular anymore.

F.e. the HTML element is also obsolete by now:  
[https://developer.mozilla.org/en-US/docs/Web/HTML/Element/marquee](https://developer.mozilla.org/en-US/docs/Web/HTML/Element/marquee)

I can see their use on a display without input though.  
What you probably need to do is using a timer component to shift the scrollbar every few 100 ms.
