I want to create a component that will automatically highlight certain
words. I also hope to add annotations to the margin. Something like
the editor in an IDE like Eclipse or IntelliJ IDEA. As a matter of
fact, it is for something very much like an IDE. I've read through the
Sun tutorials on text components, but it is a bit confusing if I really
want to go the route of using JEditorPane. Also, I'm not sure if I would
want to use an existing Document implementation, or if I should try to
create my own by extending either AbstractDocument or
DefaultStyledDocument, or something else entirely.
Does any one have any wisdom on this matter? Its a personal project,
mostly for learning, so it doesn't have to be professional quality
implementation. However, I'd *like* to make it as professional as
possible :-)
Thanks,
Daniel.

Signature
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>
Daniel Pitts - 24 Nov 2007 19:07 GMT
> I want to create a component that will automatically highlight certain
> words. I also hope to add annotations to the margin. Something like
[quoted text clipped - 13 lines]
> Thanks,
> Daniel.
I found a useful article on Sun's site.
Customizing a Text Editor:
<http://java.sun.com/products/jfc/tsc/articles/text/editor_kit/index.html>
I think its a good basis for what I want to do.

Signature
Daniel Pitts' Tech Blog: <http://virtualinfinity.net/wordpress/>