I am trying to initialize a JScrollPane to start life at the bottom. I do not want it to scroll automatically after it is initially shown. The scroll pane does not contain a subclass of JTextComponent
, but rather a JPanel(GridLayout(0, 1))
containing many JPanel
s.
I tried using JViewport.scrollRectToVisible()
inside an event handler on the parent Window
(addComponentListener
:componentShown
), but it did not seem to work.
Any ideas?