AFAIK, there is not a single comprehensive reference dealing with this
topic (I guess, this is mostly due to the fact that the API is far from
being mature). There are pieces that you can pick up here and there. I'd
recommend looking at Eckstein/Loy/Wood's "Java Swing". The material is a
bit outdated, but the general principles still hold. I myself have been
working on a HTML based editor implemented on top of JEditorPane and found
the best source of information to be Sun's source code and a debugger
;) Basically, to do what you want would require writing a parser, some
sort of a parser-document proxy that can take parser's output and convert
it into a series of ElementSpecs that the document can work with, possibly
a custom document (could be based on StyledDocument), and a custom editor
kit (based on EditorKit) that ties all of these components together.
Good luck
Dmitry
At 01:25 AM 6/7/2001, Florian Kugler wrote:
>I want to code an applet, in which i can edit a custom
>text format like:
>[...]
>does anybody know a good resource on how to adapt the
>JTextPane Component to a custom format like this?
>perhaps any good books or examples??
_______________________________________________
Swing mailing list
[EMAIL PROTECTED]
http://eos.dk/mailman/listinfo/swing