I was able to accomplish this from a button on my alarm status table using the following code:
from java.awt import Dimension
scrollPane = event.source.parent.getComponent('Alarm Status Table').getComponent(0).getComponent(0).getComponent(1).getComponent(0)
scrollPane.getVerticalScrollBar().setPreferredSize(Dimension(100, 0))
The code gets the scroll pane and directly sets the preferred width of the vertical scroll bar.
Here is the result:
This button actionPerformed script works on my alarm status table:
from java.awt import Point
viewPort = event.source.parent.getComponent('Alarm Status Table').getComponent(0).getComponent(0).getComponent(1).getComponent(0).getComponent(0)
viewPort.setViewPosition(Point(0,0))
It gets the viewport and sets the position to zero.