I am using a slightly modified DefaultStyledDocument in a JTextPane to create an editor for some very specialized editing. I have noticed a problem when trying to insert text at an Element boundary. If the caret in the document is at the startoffset for the Element than when you type the text is place at the end of the proceeding Element. The problem appears to lie in the GapContent class. But, before I start rewriting the GapContent class I wanted to see if anybody has any ideas why this would be happening. Alternatively, if anybody has Timothy Prinzing�s phone number at Sun, his name is all over the gapcontent code.
Paul Stevens
Ranch Hand
Joined: May 17, 2001
Posts: 2823
posted
0
Try posting your question at the Java Developers Connection at the sun site.