I am using an html page inside a swing JTextPane
in a JDialog.
In the html I have a <a href="mailto:email@adress.com">John</a>
When I view the web page via an explorer when the mouse goes to the link I can see the mailto
.
When I press the link I get the error "no default mail client installed", but I guess this is due to in my PC I have not configured Outlook or some other program.
When I open the JDialog from my Swing application, I see John
highlighted as a link, but when I press the link nothing happens.
I was expecting to get the same error message as the browser.
So my question is can the link be opened via a Swing application or not?
Thanks