🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Progrmatically Scrolling a JTextArea in a JScrollPane to the last line

#8475
From: Johan Forsberg
Date: Mon, 28 Aug 2000 00:00
8 lines
1062 bytes
"Larry Maturo" <lmaturo@athensgroup.com> skrev i meddelandet
news:39a6c7bb_2@dnews...
> I can't find any way to programatically scroll to the bottom after
> I use append to add a line at the bottom.  It seems like it should
> be simple, but apparently it isn't.
My favourite way is textArea.scrollRectToVisible(aRect);
Works with any kind of component, not just text areas.
Technical Details
Message-ID: <8odgos$isq1@bornews.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <39a6c7bb_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,a51abcebed13651a
X-Google-Attributes: gid111d45,public
From: "Johan Forsberg" <jfo@finansforbundet.se>
Subject: Re: Progrmatically Scrolling a JTextArea in a JScrollPane to the last line
Date: 2000/08/28
Message-ID: <8odgos$isq1@bornews.borland.com>
X-Deja-AN: 663428823
Content-Transfer-Encoding: 7bit
References: <39a6c7bb_2@dnews>
Organization: Another Netscape Collabra Server User
X-MSMail-Priority: Normal
X-Priority: 3
Content-Type: text/plain; charset="Windows-1252"
Mime-Version: 1.0
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6700
Newsgroups: borland.public.jbuilder.java.swing