<Swing Dev> Troubles with own StyledDocument
Marco Macala
marco.macala at gmail.com
Sat Aug 1 12:13:07 UTC 2009
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20090801/f0efa38f/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: BlockContent.java
Type: application/octet-stream
Size: 7897 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20090801/f0efa38f/BlockContent.java>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: ZiaweDocument.java
Type: application/octet-stream
Size: 14989 bytes
Desc: not available
URL: <http://mail.openjdk.java.net/pipermail/swing-dev/attachments/20090801/f0efa38f/ZiaweDocument.java>
More information about the swing-dev
mailing list