This week's book giveaway is in the Design and Architecture forum. We're giving away four copies of Communication Patterns: A Guide for Developers and Architects and have Jacqui Read on-line! See this thread for details.
Could someone help me with this problem? I have a JTextArea inside a JScrollPane so that I can scroll the text. My program reads a files and populated the textarea. When it is done, the textarea is scrolled all the way down. How can I scroll it all the way up programmatically? Thanks, Arsalan ------------------
HI, You could set the JTextArea caret position to 0. The top ... textArea.setCaretPosition( 0 ); That should make the scrollbars back to top of textarea. Regards, Manfred.
Hi Manfred, That worked. Thanks for your help. Arsalan
Originally posted by Manfred Leonhardt: HI, You could set the JTextArea caret position to 0. The top ... textArea.setCaretPosition( 0 ); That should make the scrollbars back to top of textarea. Regards, Manfred.
I got this tall by not having enough crisco in my diet as a kid. This ad looks like it had plenty of shortening: