For the "About" dialog of my application, I have a JLabel which I have defined using html tag as follows:
JLabel myEmail = new JLabel(
"<html><br><font size=2><a href=mailto:abc.pqr@xyz.com>abc.pqr@xyz.com</a>" +
"</font></html>");`
I want that on clicking this JLabel
, the default email client (say Outlook) gets opened with the To
field populated as abc.pqr@xyz.com
and subject
as a predefined text (say, Hi!
).
How to do that?