File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes ? about Elements in the Swing Text package Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "? about Elements in the Swing Text package" Watch "? about Elements in the Swing Text package" New topic
Author

? about Elements in the Swing Text package

Jon Hansen
Greenhorn

Joined: Sep 26, 2001
Posts: 2
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
Try posting your question at the Java Developers Connection at the sun site.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ? about Elements in the Swing Text package
 
Similar Threads
Poseidon for UML 4.0.1 problem
Problem in getNodeValue()
Empty tags in Java DOM API
Problem with Elements in the Swing Text Package
Applet seems to steal focus from HTML page