JTextArea search/replace

I'm developping a little TextEditor. I have to implement function to enable search & search & replace functions.I only need some advices on how to implement these two functions. thanks for your adviceKind regards,M.Carpentier
[276 byte] By [Morgoth_Sauron] at [2007-9-26 4:11:34]
# 1
just read out the content of the textarea, put it in a string, search in this string, maybe replace and then put the modified string into the textarea
swingfreak at 2007-6-29 13:16:36 > top of Java-index,Archived Forums,Java Programming...
# 2
Should I put all search methods into a specific class ? I mean, in my app, I would create a new instance of my SearchReplace class. I'm new to java and want to make it as clean as possible and use the 'power' of OOP.Thanks.
Morgoth_Sauron at 2007-6-29 13:16:36 > top of Java-index,Archived Forums,Java Programming...