posted 20 years ago
Jeff,
Have you tried using the ScrollPane method
setScrollPosition( int x, int y )
You can use it with the Point instance that you've already created in your example code:
setScrollPosition( Point p )
If I had the time I would try this out myself and give you a definitive answer. Try dropping the references to viewPort as well.
Might also be worth getting the scroll position BEFORE you remove the object whose scroll position you're interested in, just a thought.
So try this:
Hope there's something useful to you there.
Andy.