🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: aus.computers.java
Article #1166

Re: Java Text Editor, Find & Replace

#1166
From: Mike Lundy
Date: Sat, 26 Jun 1999 00:00
28 lines
1263 bytes
Michael Rowlands wrote:
> 
> Hi,
> I was wondering if anyone knew of a source I could use to implement a find
> and replace in a textArea text box, as I have found plenty of dead links but
> no source :-(
> 
> Many Thanks
> 
> Michael Rowlands

mike,

conjour one up yourself, 

perhaps copy all your lines into a StringBuffer, and use

for StringBuffer.length();
StringBuffer.setCharAt(int, char);
StringBuffer.insert(int, String);
ect.

extensive use of these methods are used in my applet 'src2html', at:
http://engineering.osg.net/guest/links/javastuff.htm

take care,

-mike-
Technical Details
Message-ID: <3774FC5D.BB80593C@osgltd.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <930393287.897167@Chaos.es.co.nz>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10d6db,6d5c4f7f8fc0a2cc
X-Google-Attributes: gid10d6db,public
X-Google-Thread: 113ae9,6d5c4f7f8fc0a2cc
X-Google-Attributes: gid113ae9,public
From: Mike Lundy <lundy@osgltd.com>
Subject: Re: Java Text Editor, Find & Replace
Date: 1999/06/26
Message-ID: <3774FC5D.BB80593C@osgltd.com>
X-Deja-AN: 494166957
Content-Transfer-Encoding: 7bit
References: <930393287.897167@Chaos.es.co.nz>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
X-Trace: fountain.mindlink.net 930413665 15987 204.244.176.152
MIME-Version: 1.0
Newsgroups: aus.computers.java,comp.lang.java.help