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).
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!