# Move vertical scroll bar on table from right to left

**URL:** <https://forum.inductiveautomation.com/t/move-vertical-scroll-bar-on-table-from-right-to-left/11811>\
**Category:** Ignition\
**Created:** [June 14, 2016, 5:33pm UTC](https://forum.inductiveautomation.com/t/move-vertical-scroll-bar-on-table-from-right-to-left/11811 "2016-06-14T17:33:54Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![DougSN](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@DougSN](https://forum.inductiveautomation.com/u/DougSN)\
**Post date:** [June 14, 2016, 5:33pm UTC](https://forum.inductiveautomation.com/t/move-vertical-scroll-bar-on-table-from-right-to-left/11811/1 "2016-06-14T17:33:54Z")

</div>

I have a table component where I would like the vertical scroll bar to be on the left side of the table instead of the right. It seems like I would be able to do it with something like this (in a button).

```auto
from javax.swing import JScrollPane
from java.awt import ComponentOrientation
table = event.source.parent.getComponent('TableComponent')
table.setVerticalScrollBarPolicy(JScrollPane.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT))
```

This gives me the error “TypeError: setComponentOrientation(): expected 2 args; got 1” but I can’t figure out what the second argument should be. Or perhaps I’m going about this the wrong way in general. Does anyone know a bit more about the JTable or JScrollPane that could help? Thank you!

---

<div class="post-metadata">

**Author:** ![DougSN](https://avatars.discourse-cdn.com/v4/letter/d/a9adbd/32.png) [@DougSN](https://forum.inductiveautomation.com/u/DougSN)\
**Post date:** [June 14, 2016, 6:34pm UTC](https://forum.inductiveautomation.com/t/move-vertical-scroll-bar-on-table-from-right-to-left/11811/2 "2016-06-14T18:34:38Z")

</div>

I figured it out!

```auto
from javax.swing import JScrollPane
from java.awt import ComponentOrientation
table = event.source.parent.getComponent('TableComponent')
JScrollPane.setComponentOrientation(table, ComponentOrientation.RIGHT_TO_LEFT)
```
