Hi, In my GUI, when i move the slider my scrollbars position getting changed. when i refresh the screen, scrollbar positions are initialized to zero again. but i like to retain it in old position. any one help me....
posted 10 years ago
I'm not sure exactly what you mean by "refresh the screen", but you can save and restore the JScrollBar positions. Add an AdjustmentEvent listener to the JScrollBar, and save the value in the event handler. When you "refresh", call the setValue method to restore the setting.
Life is good on the Ponderosa,<br />but mind where you step.