tags:

views:

303

answers:

1

I need to place a scroll bar to the left of the contents in my JScrollPane. Can it be done without a separate JScrollBar component? Perhaps simply by setting some alignment?

+3  A: 

Using trial and error I found that

JScrollPane.setComponentOrientation(ComponentOrientation.RIGHT_TO_LEFT);

worked like a charm.

Jonas Byström
Nice. Did this have any other effects that you noticed?
David Moles