Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Joined: Mar 15, 2004
Mar 15, 2004 05:00:00
I'm trying to change my vertical scrollbars so that you have to click the top arrrow for the value to increase rather the the down arrow. I tried VERTICAL/2 and got a horizontal bar!!! (Think Java was being a wise guy =P)
Joined: Mar 26, 2004
Mar 27, 2004 03:45:00
If you are using a
then the simplest solution would seem to be reversing the minimum and maximum values of the scroll bar's range.
BoundedRangeModel model= new JScrollBar().getModel(); int min = model.getMinimum(); int max = model.getMaximum(); model.setMaximum(min); model.setMinimum(max);
rocket mass heater
subject: Reversing Scrollbars
JTextArea scrollbars problem
regarding JTable scrollabrs
no vertical lines in JTableHeader
textarea without vertical scrollbar
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014