Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • 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?
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!