🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: JTextArea

#9668
From: John P. McGrath
Date: Sat, 12 Feb 2000 00:00
23 lines
1493 bytes
On Fri, 11 Feb 2000 10:18:58 -0500, Kingsley wrote:

> do you know any other component which can behave like a console?

JTextArea seems like an appropriate component to use.

I wrote a console class based on a JTextPane, which is very similar to 
JTextArea, except that it handles character attributes.  I used this to 
connect multiple streams to the console (i.e. System.out, System.err), 
and display the text written to the streams in different colors.

It does not have any facility to limit the number of lines it displays, 
and I have not used it with a large amount of text.  I suspect that it 
might suffer from the performance problems that concern you if a lot of 
text were written to it.

This does sound like a useful enhancement, though.  I think I may take a 
look at adding this feature.  If I do implement it, I will let you know.

-- 
John P. McGrath
<JPMcGrath@fast.net>
<jpm@nscs.fast.net>
Technical Details
Message-ID: <MPG.130fc181e112815198978e@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <86960s$ibp7@bornews.borland.com> <87vdpo$cr018@bornews.borland.com> <MPG.130d587df87f2e0b989784@forums.borland.com> <8818fu$e3111@bornews.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,569c179d91546360
X-Google-Attributes: gid111d45,public
From: John P. McGrath <JPMcGrath@fast.net>
Subject: Re: JTextArea
Date: 2000/02/12
Message-ID: <MPG.130fc181e112815198978e@forums.borland.com>
X-Deja-AN: 585151690
References: <86960s$ibp7@bornews.borland.com> <87vdpo$cr018@bornews.borland.com> <MPG.130d587df87f2e0b989784@forums.borland.com> <8818fu$e3111@bornews.borland.com>
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.swing