• Post Reply Bookmark Topic Watch Topic
  • New Topic

embed URL in JTextPane

 
Tod Sterben
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How do I embed URLs & email addresses in JTextPane
so that they open default browser & email client when clicked
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This page shows you how to make clickable hyperlinks in a JEditorPane (and thus a JTextPane also).

This page gives a windows-specific way to launch the default browser.
 
tim arnold
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Tod your first name means "death" in german and your last name means "dying" in german. That probably means you will live to be over 100.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!