Caret « JEditorPane « Java Swing Q&A





1. JEditorPane scrolling to the current caret position    stackoverflow.com

I have a JEditorPane which I use to display an HTML document. the document has hyperlinks embedded in it. When a user clicks on a bookmark ...

2. JEditorPane: transforming between caret position in html and text/plain    forums.oracle.com

Assuming you were inserting a tag, my code there checks what tag it is, and if that is known by the java implementation, assigns that to 'tag', so that the element is correctly inserted. If it is not known, we just use 'null'. Which for me wasn't such a great result. In fact, nothing really was a great result, as with ...