Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

default mail client (browser) and swing  RSS feed

 
Cristian Herling
Greenhorn
Posts: 5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Does any one know how to get the Swing application call the default browser or the default mail program on a href/email address?
I tried something but it doesn't work.
Thanks a lot,
Cristian.
This is the code I tried for inserting an emai l address. I tried with a JLabel.
-------------------------------------------------
String anEmail = "yoyo@yoyo.com";
JLabel emailLabel = new JLabel("<html><a href=\"" + anEmail + "\">" + anEmail + "</a></html>");
-------------------------------------------------
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!