The position of java.awt.Scrollpane is reset to an initial position after calling validate() method with setting SCROLLBARS_NEVER. It is likely to be a bug in ScrollPane. The reason is that the validate() method eventually calls Win32 API SetScrollInfo(), which resets the position . It is always called even when the scroll bar is not displayed.
|