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:[email protected]>[email protected]</a>" +
"</font></html>");`
I want that on clicking this JLabel
, the default email client (say Outlook) gets opened with the To
field populated as [email protected]
and subject
as a predefined text (say, Hi!
).
How to do that?