You can use getVerticalScrollBar() and setPreferredSize() from Java’s ScrollPaneLayout, which is from Java Swing (which Ignition uses). An example:
[code]from java.awt import Dimension
from java.lang import Integer
create Dimension object, first parameter is width of scrollbar
new_scrollbar_width = Dimension(25, Integer.MAX_VALUE)
get component object, pass the Dimension object to setPreferredSize to change width
comp = system.gui.getWindow(‘WindowName’).getRootContainer().getComponent(“Table”)
comp.getVerticalScrollBar().setPreferredSize(new_scrollbar_width)
a hacky way of “repainting” the component, since repaint() won’t work.
manually resizing the component in the designer using the arrows would work as well
system.gui.resizeComponent(comp,comp.getWidth()+1,comp.getHeight()+1)
system.gui.resizeComponent(comp,comp.getWidth()-1,comp.getHeight()-1)[/code]