Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / August 2004

Tip: Looking for answers? Try searching our database.

Writing in a JTextArea

Thread view: 
Mani - 04 Aug 2004 06:24 GMT
Hi
   I am having a JTextArea and i want to get my values to be written
in the textarea in a phased manner one line after another.I am using
append()method for appending text into textarea.I am using
System.out.println() and ta.append().The values are fetched from
database and using System.out.println() there is a time gap between
one line and another when printing.But my whole text get printed in
textarea at a once.I also want time gap between printing one line and
another in textarea.How to make it happen??
thanks for your reply in advance.
ak - 04 Aug 2004 07:01 GMT
>     I am having a JTextArea and i want to get my values to be written
> in the textarea in a phased manner one line after another.I am using
> append()method for appending text into textarea. I am using
> System.out.println() and ta.append().
System.out.println() writes to System.out not into JTextArea, also don't
wonder.
String text = //read from whatever;
ta.append(text);
ta.append("\n");

> I also want time gap between printing one line and
> another in textarea.How to make it happen??
use javax.swing.Timer

Signature

Andrei Kouznetsov
http://uio.dev.java.net Unified I/O for Java
http://reader.imagero.com Java image reader



Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.