• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

? about Elements in the Swing Text package

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try posting your question at the Java Developers Connection at the sun site.
 
reply
    Bookmark Topic Watch Topic
  • New Topic