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
2009-08-21 13:29:21
Nice. Did this have any other effects that you noticed?
David Moles
2009-08-24 15:30:56