By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,032 Members | 825 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,032 IT Pros & Developers. It's quick & easy.

How to control JScrollPane?

P: n/a
When we put a lengthy line-wrapped String in a not-so-large JTextArea
which is enclosed in a JScrollPane, it automatically scrolls down to
the end of the string. That is, the string is displayed from its
halfway. How could we suppress this auto-scrolling behavior and
display the lengthy string form its top in a JScrollPaned rather small
text area?
Jul 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.