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.
posted 14 years ago
Try posting your question at the Java Developers Connection at the sun site.