posted 19 years ago
I have a large html document contained within a JEditorPane using the HTMLEditorkit as the editorkit. A table of contents appears at the top of this large html document with links to specific areas of the text - this table of contents employs the use of anchor tags. Does anyone know how I would be able to navigate to one of these anchors? I'm already listening for events using a HyperlinkListener, but I can't find any documentation on how I use the HyperlinkListener with anchors.
Thanks,
Scott