posted 20 years ago
I have a series of JPanels that are embeded in a single JPanel that resides in a JScrollPane.
Each time I call show() on the JInternalFrame within which this all resides it ends up displaying the top in a flash and then scrolls to the bottom. I need the display to remain at the top of the JScrollPane.
I have tried several things both before and after calling JInternalFrame show() all to no avail.
Any ideas would be greatly appreciated.
Example of tried code:
mainScrollPane.scrollRectToVisible(new Rectangle(0,0,20,50));