Article View: borland.public.jbuilder.java.swing
Article #8596Re: A Line Numbered Textarea????
From: John P. McGrath
Date: Thu, 10 Aug 2000 00:00
Date: Thu, 10 Aug 2000 00:00
14 lines
911 bytes
911 bytes
On Wed, 09 Aug 2000 17:49:50 -0400, Nikolaos Giannopoulos wrote: > (2) Use a JSplitPane with two text areas and try to > have the line numbers keep in synch with changes to > the main text text area. If you try this approach, you should not need to write code to keep them in synch. Just add the main text area to a JScrollPane, and install your line number text area as the "row header" for the JScrollPane. -- Regards, John McGrath
Technical Details
Message-ID:
<MPG.13fc1eafc7424225989aae@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<3991D1FE.C75B2C12@solmar.ca>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,dd46b099d16a9668 X-Google-Attributes: gid111d45,public From: John P. McGrath <JPMcGrath@fast.net> Subject: Re: A Line Numbered Textarea???? Date: 2000/08/10 Message-ID: <MPG.13fc1eafc7424225989aae@forums.borland.com> X-Deja-AN: 656657015 References: <3991D1FE.C75B2C12@solmar.ca> Organization: Another Netscape Collabra Server User Newsgroups: borland.public.jbuilder.java.swing