Article View: borland.public.jbuilder.java.swing
Article #12862Need help scrolling through a jTextArea
From: Michael J. Olenik
Date: Tue, 27 Oct 1998 00:00
Date: Tue, 27 Oct 1998 00:00
12 lines
1006 bytes
1006 bytes
Is there a way of scrolling through a jTextArea (on a jScrollPane) to a particular line? I have say 100 lines in a jTextArea and would like to scroll the display area down to say the 50th line programitically. This would be similiar to a "Find String" function. I know what line that I need to scroll to, but can not figure out how to scroll the jTextArea ( jScrollPane). What I am looking for is a way to mimic pressing the Arrow Up or Arrow Down go just "going" to a line.. Thanks
Technical Details
Message-ID:
<36361A3D.2814DA04@prc.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,ff5e96f6484a2a42,start X-Google-Attributes: gid111d45,public From: "Michael J. Olenik" <olenik_mike@prc.com> Subject: Need help scrolling through a jTextArea Date: 1998/10/27 Message-ID: <36361A3D.2814DA04@prc.com> X-Deja-AN: 405649069 Content-Transfer-Encoding: 7bit Organization: Another Netscape Collabra Server User Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing