• Post Reply Bookmark Topic Watch Topic
  • New Topic

JEditorPane & HyperlinkListener  RSS feed

 
Frank Hale
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my program I am using a JEditorPane to display HTML formated data. I would like to use hyper links to execute different methods in my program. However to the best of my knowledge hyperlinks only work with valid URLs. Is there a way I can get the hyperlinks to call methods in my program?
I was thinking I could put some descriptive word in the link tag and then try to trap it once its clicked. I haven't done it yet, do you think this is possible to do?
Thanks,
Frank
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!