🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Progrmatically Scrolling a JTextArea in a JScrollPane to the last line

#8470
From: Larry Maturo
Date: Fri, 25 Aug 2000 00:00
11 lines
1084 bytes
I want to use a JTextArea for output only, and I want the last line I
append to be visible at the bottom of the JTextArea.  I also want a
user to be able to scroll-up to look at eariler messages if he needs
to, otherwise I would just use a JLabel.

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.

-- Larry Maturo
    lmaturo@athensgroup.com
Technical Details
Message-ID: <39a6c7bb_2@dnews>
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,a51abcebed13651a,start
X-Google-Attributes: gid111d45,public
From: "Larry Maturo" <lmaturo@athensgroup.com>
Subject: Progrmatically Scrolling a JTextArea in a JScrollPane to the last line
Date: 2000/08/25
Message-ID: <39a6c7bb_2@dnews>
X-Deja-AN: 662482101
X-Priority: 3
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
X-Trace: 25 Aug 2000 12:23:39 -0800, 216.30.5.178
Organization: Athens Group
X-MSMail-Priority: Normal
Reply-To: "Larry Maturo" <lmaturo@athensgroup.com>
Newsgroups: borland.public.jbuilder.java.swing