What kind of editor you are looking for?
Do you mean a rich text editor if so, You can take a look at fck editor it has some
Java integration too, you can find it at:
http://www.fckeditor.net/ In case that you are looking for some other kind of editor, explain a bit more and some one will pick up your question.