JScrollBar Repaint Question



I have a JInternalFrame which contains various JComponents. One of
which is a JScrollPane which contains a JScrollBar. When I do a repaint
call (I have an ActiveRepainter class) on the JDesktopPane the
JScrollBar resets itself to the topmost position. I want the JScrollBar
to be in the same position it was in prior to the paint call.

I have some ideas but none of them are elegant and before I spend more
time trying to solve this I would like to get some input. Perhaps
overriding the paint method of the JScrollBar is the best solution?


Thanks for the help,

Mearvk

.