Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

? about Elements in the Swing Text package

 
Jon Hansen
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try posting your question at the Java Developers Connection at the sun site.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic