LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 03-19-2004, 10:30 PM   #1
mcshen
LQ Newbie
 
Registered: Dec 2003
Distribution: womandrake
Posts: 28

Rep: Reputation: 15
JTextArea and autoscroll


What function can make the text in JTextArea autoscrooll

JTextArea.setAutoScroll() doesn't seem to work for me.
 
Old 03-20-2004, 06:04 AM   #2
Looking_Lost
Senior Member
 
Registered: Apr 2003
Location: Eire
Distribution: Slackware 12.0, OpenSuse 10.3
Posts: 1,120

Rep: Reputation: 45
Add the JTextArea to a JScrollPane, then add the JScrollPane to JFrame or whatever.


JTextArea myArea=new JTextArea();

JScrollPane myScrollPane=new JScrollPane(myArea);
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
JTextArea Question for Java Programmers Diederick Programming 1 09-16-2005 08:25 PM
java swing JTextArea gauravbagga Programming 1 05-23-2005 04:34 AM
Snagit equivalent for Linux that does autoscroll? jerich007 Linux - Software 0 06-21-2004 05:15 PM
Terminal Autoscroll Annoyance Spasmolytic Linux - Software 4 05-13-2004 01:09 PM
autoscroll in Moz 1.4 marlaina1 Linux - Software 0 09-21-2003 07:32 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 06:59 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration