🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #9649

JTextArea: How can i make this behave like a console/log viewer

#9649
From: Kingsley
Date: Thu, 10 Feb 2000 00:00
13 lines
983 bytes
im using a JTextArea to display text messages. im appending strings line by
line.

as the message grows beyond a certain limit (say 40 lines of text or beyond
the viewing area) the messages at the top should get deleted and the new
messages should be appended to the bottom.

can any one give me possible solution or an idea !
thanks for even just considering it! and THANKS for the solution in
advance!!

kingsley
Technical Details
Message-ID: <87vdjn$cqt11@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,b57d3520469f3457,start
X-Google-Attributes: gid111d45,public
From: "Kingsley" <kingsleys@hotmail.com>
Subject: JTextArea: How can i make this behave like a console/log viewer
Date: 2000/02/10
Message-ID: <87vdjn$cqt11@bornews.borland.com>
X-Deja-AN: 584296916
X-Priority: 3
X-MIMEOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
Organization: McGraw-Hill
X-MSMail-Priority: Normal
Reply-To: "Kingsley" <kingsleys@hotmail.com>
Newsgroups: borland.public.jbuilder.java.swing