How to make a clickable link into a JOptionPane

Hi all,I've created a about menu for my app with a JOptionPane and I'd like to know if I can insert a clickable link to my email on this, so when the user clicks it, it will have the same effect as it would have on a web browser.Is it possible?
[274 byte] By [Valerianoa] at [2007-11-27 4:50:01]
# 1

Yes.... You can put other things besides strings into JOptionPanes.Such as you can put a JEditorPane that displays some HTML, which can in turn have links in it. Or buttons that look like links.

But I've also had problems in modal dialogs in some cases where clicking the links in HTML doesn't work correctly (the HyperTextEvent doesn't get fired).

As for same effect... Well, it's usually more complicated than that. Applets are simple (Applet.showDocument(), or AppletContext, whatever it is). Otherwise you need to do something different. Search the forums for posts on launching URLs from applications, there's plenty o' info.

bsampieria at 2007-7-12 10:03:14 > top of Java-index,Java Essentials,New To Java...