JScrollPane showing old text
<p>I have a java GUI that is simulating a terminal window.</p>

<p>It works fine until the text runs to the bottom of the window and the scrollbar appears.  It becomes very glitchy and shows old text on top of the new text.</p>

<p>I tried using repaint() after printing text to the printStream, but the only way I can get the screen to look right is by manually resizing the window by dragging it with the mouse.</p>

<p>Help much appreciated.</p>
