I have a jTextPane that has HTMLEditorKit installed as a standard Kit editor . Calling getDocument on jTextPane returns an HTMLDocument . I can go through this document by navigating through the elements, but I cannot find a way to get the text content of the individual elements. I know that there is a getTextContents () element in the DOM for each element, but I do not work with the W3C DOM.
source share