Hello, I am trying to implement my own WYSYWIG Editor with a record based structure. To accomplish this i wanted at the beginning I tried to only make the Content implementation. This didn't go well, because when i changed the Content the Elements didn't recognize it and pointed to the wrong locations. Afterwards I thought it would be easiest to implement my own StyledDocument.
The problem I am now facing is that when I type a newline the JTextPane doesn't begin a newline. Actually the string is put into the content object and the elements point to the right locations, so I don't really know what I am missing. Can you please give me any suggestions or hints? Greetings Marco Macala P.S.: I've attached the source code of my Content and StyledDocument implementations. I am not sure if this is the correct mailing list, if not I'm sorry and I ask you to tell me the right one.
BlockContent.java
Description: Binary data
ZiaweDocument.java
Description: Binary data
