Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JEditorPane - Links and Mailtos...

843805Aug 22 2006
Hi everyone,

For a while now, I have been trying to figure out how to get hyperlinks working in a JEditorPane. I realize I could make it uneditable and all that, but I need two things above and beyond:
1) I need the link you clicked to open in your default web browser.
2) I need "mailto" links to open a new e-mail in your default e-mail client.

I have no idea where to find code for (1) and (2)... I have searched high and low and can't find anything useful, especially for (2).

I would be grateful for any help.

Thank you,
Wojciech
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 19 2006
Added on Aug 22 2006
0 comments
59 views