• Post Reply Bookmark Topic Watch Topic
  • New Topic

anchor tags within the jeditorpane  RSS feed

 
Scott Presley
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!