aspose file tools
The moose likes Swing / AWT / SWT and the fly likes embed URL in JTextPane Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "embed URL in JTextPane" Watch "embed URL in JTextPane" New topic
Author

embed URL in JTextPane

Tod Sterben
Greenhorn

Joined: May 05, 2003
Posts: 7
How do I embed URLs & email addresses in JTextPane
so that they open default browser & email client when clicked
Nathan Pruett
Bartender

Joined: Oct 18, 2000
Posts: 4121

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.


-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.
tim arnold
Greenhorn

Joined: May 07, 2003
Posts: 7
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.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: embed URL in JTextPane
 
Similar Threads
change the text color momentarily
Browsing HTML and XML files in text area
Adding a css template to java mail
WYSIWYG Editors in java
How the heck do you enter a image into a JEditorPane???