# Modelling Table scrollbar

**URL:** <https://forum.inductiveautomation.com/t/modelling-table-scrollbar/23478>\
**Category:** Ignition\
**Created:** [March 20, 2019, 2:07pm UTC](https://forum.inductiveautomation.com/t/modelling-table-scrollbar/23478 "2019-03-20T14:07:32Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![f.pinciaroli](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/f.pinciaroli/32/6101_2.png) [@f.pinciaroli](https://forum.inductiveautomation.com/u/f.pinciaroli)\
**Post date:** [March 20, 2019, 2:07pm UTC](https://forum.inductiveautomation.com/t/modelling-table-scrollbar/23478/1 "2019-03-20T14:07:32Z")

</div>

Hello,

I would like to resize the scrollBar of a specific table.  
I was able to set the width with:

```auto
`event.source.parent.getComponent('TableProducts2').getVerticalScrollBar().setPreferredSize( Dimension(70, Integer.MAX_VALUE))`

```

but the height of the up/down arrows remains the same, so I would like to change even the arrow buttons dimensions.  
I think I should use the setUI() method to set up a new BasicScrollBarUI but I really don’t know how to instantiate a new BasicScrollBarUI to pass to the setUI() method overriding the createDecreaseButton () and createIncreaseButton() methods.

Thanks,  
Federico.
