posted 21 years ago
Hello..
I'm having a lil problem, as follows:
I have a JTextArea within a JScrollPane. I keep refreshing the JTextArea with new text, so each time after I refresh the textarea, the scrollbar is positioned at the bottom of the textarea. Is there a way to automatically position it at the top after each refresh?
Also, can two or more components be placed within the same JScrollPane?
Thanks!